displaying objects over platforms

Hi

I’m developing platform game, I’m placing the main character game all over a floor or ground object, however, no matter the x,y coordinates the player is positioned some pixels above the platform object.

By using physics.setDrawMode( “hybrid” ) I realized the platform top shape is about 5 pixels on top of the visual ground object. So the main character seems to float instead f walking on the platform 

My question is How can I achieve the main character get positioned right on top of the platform object.

I include a screen capture to explain better my issue.

Thanks

]

Create a custom physics shape for your player.

Tools like physics editor make this easy. You can also do it by hand. Take a look at the physics.addBody docs on Corona’s doc site, it has examples :slight_smile:

Create a custom physics shape for your player.

Tools like physics editor make this easy. You can also do it by hand. Take a look at the physics.addBody docs on Corona’s doc site, it has examples :slight_smile: