Is there a way to temporarily disable the "gravity" in my platformer?

In platformers, when you give a sprite upward velocity, it will come back down to the ground. I want to make a cutscene in my game where the character loses gravity and flies away. Is there any way to temporarily disable gravity so that the sprite can float around like they are in space?

1 Like

If you are using ay, set it to zero.

you could change the vy to 0

just set the sprites acceleration (y) to 0!