Download

Character Step On Functionality

Hello,

I’m still learning… In my 2D game I have bubbles floating about effected by physics and gravity. I want my player to be able to step onto the top of the bubble and change the physics of the bubble, so that it doesn’t crash to the ground when stepped on. If the bubble should fall onto the player or roll into them (sideways) it causes damage to the player. How can I detect the player is standing on a bubble?

I have tried putting a collision box at the top of the bubble, but because it rotates, the box collision moves and so could be located at the bottom of the bubble when a player steps onto the top of the bubble, so physics settings don’t get set, and so it crashes to the ground with the player on top.

Any ideas?

I resolved this by quite simply checking if my player was above my bubble… Doh!