Keep object in the air

Hello All,

My first Phaser project is a NES Mario clone and I’m trying to replicate the block bounce that occurs if little Mario hits a block and it won’t break. Nothing is working for me and I’ve been searching for hours now. I need gravity for bounce to work properly but then the block just falls to the ground, and if I turn off gravity the block just shoots off into space. How can I anchor the block above ground so it’s effected by gravity but won’t fall to the ground?

Thanks in advance, any help is greatly appreciated!

Hi @dabears84,
You can try something like this example:

The main idea is make an invisible platform under the blocks and avoid horizontal movements.
Greetings

2 Likes

That’ll work perfectly, thanks so much for the response! That should also help me keep the enemies from falling off platforms.