How do i invert gravity

i need to know how to invert gravity when you click spacebar for my game called inverted, basicly when you hold spacebar it flips the player but i need gravity to invert aswell

1 Like

just use an always motor to simulate gravity

i dont know what that means

There is a gravity reverse example on the examples page:


thanks grazer ill try my best to make it fit with what im doing

1 Like

it still wont work

1 Like

Remove his gravity to use your own gravity.

1 Like

what does that mean

You have to change some things so it will work in your game, especially if some code is calling objects that don’t exist in your game

oh no i made my own code without using the blocks

remove the checkbox “affected by gravity”

but now im just floating