C
C#8mo ago
Jëskłer

My player character is just getting launched into the sky despite not changing anything.

I'm working on a project right now that has a ball roll around a map avoiding towers and trying to collect points and I ended up messing up on one section, it was pretty severe so I simply closed the application down and reverted back to the version of the project before I opened it up on my computer, which fortunately didn't lose me a lot of progress. But unlike before where the ball would roll normally and without problem, now every time I press play it gets launched into the sky for seemingly no reason, I didn't change anything relating to the map, the player model, the movement, or anything like that, any possible help?
4 Replies
Jëskłer
JëskłerOP8mo ago
Playermovement script + last section of said script
No description
No description
Jëskłer
JëskłerOP8mo ago
Projectile script
No description
Jëskłer
JëskłerOP8mo ago
These are the only places where I can imagine the issue shows up, everything else hasn't even been touched Removing both scripts doesn't seem to solve the problem, even if there's no movement script at all, the player model still just flies off apparently removing the script meant to havethe camera follow the player was the solution???????????????????? And it still follows the player even though the script to do it is gone???????????? Oh wait, the camera and the player had the camera follow script, that's probably why it was bugging
Neophyte
Neophyte8mo ago
you could use [SerializeField] instead of public accessability for your fields c# convention is to use CamelCase method naming (thus damageTaken --> DamageTaken) based on what you have copied here, you shouldn't rocket to the sky check in the editor view if it is the camera only, or the ball as well? and check what functions are assigned them in the editor
Want results from more Discord servers?
Add your server