Hello,
I have a fake 3D game vertically scrolling. There are two ways in which a player can move (run and fly - powerup). All my obstacles have a solid behavior. When the player is running it does not pass through any of it. However, when the player is flying I disable all the collisions and put the player on the top of the layer so that it gives a feeling that it is flying. There is a flying timer which when runs out the player falls (enable all the collisions). What is happening is if the player falls on any of the obstacles, it gets stuck due to the solid behavior. How can I handle this?
Develop games in your browser. Powerful, performant & highly capable.
Maybe you can say if player is overlapping obstacle and collisions are enabled then set the player position up the screen a bit. I think normally with solid enabled you can't overlap so this condition might work.