dejaime / thats-ridiculous

TR is a game where you are a Wizard whose responsibility is keeping an Airport running amidst an Alien Goo attack.
MIT License
10 stars 1 forks source link

Missing script on CharacterController GameObject (child of the Player GameObject) #1

Closed AlexanderGheorghe closed 2 years ago

AlexanderGheorghe commented 3 years ago

There's a missing script on the CharacterController GameObject in the Game scene. The PlayerMovement and CameraMouseInput are there, but there is a third script that is missing. I think this causes the player to fire continuously and makes the charging of the weapon not work.

dejaime commented 2 years ago

Oh, hi, thank you for the issue, and sorry for the huge delay on the response! I missed the notification, it seems.

The game is a constant shooter, like a bullet hell, so the player firing continuously is the intended behavior. The charging happens when the player holds down the mouse button, and goes up to (iirc) 2k 8k projectiles, and releases all of them when the mouse button is released.

If there's an actual missing script (as in a script is showing as missing in the hierarchy) then that's probably my fault and I might have failed to commit something. Let me know if that's the case and feel free to reopen this issue!

Cheers

dejaime commented 2 years ago

Just to add a bit more information, looking at the Player prefab you'll find the following hierarchy:

image

The CharacterController game object does indeed have three scripts, PlayerMovement, CameraMouseInput and TurretSpawner. The turret spawner is responsible for spawning turrets (huh!), and it triggers with the right mouse button.

Notice though that it has no scripts related to the weapon. The weapon is actually nested in the hierarchy, and it holds its own Weapon script. The staff object is just for rendering, and has no logic attached.

Let me know if you have any further problems or questions!