#💬 KazabiteBoltizʹs Feedback
1 messages · Page 1 of 1 (latest)
ok the gliding just looks like it feels good to use
i tried making a jetpack type system similar to that, mine keeps breaking when i respawn though
how u deal with that
So what you see isn't just a local script that handles bodyvelocity
I'm using a StateMachine to handle my Dashing State, Double Jump state and Idle state, where I'm on ground and not doing anything.
The statemachine always switches back to idle state when player dies and all events and variables, animations and particle effects, trails etc are cleaned when states change. Everything cleans up using Troves from rbxutil.
It's a type of code architecture that's known for cleaning up things after finishing their job.
That's why Troves and Statemachines are the best for such things which cause data leaks, like in your case
@hollow wraith
ah, gotcha
cuz it started off as a simple double jump i used from a tutorial i saw, but i ended up with the unintentional bug, a jetpack
and that problem persists
complement
love the sound effects