Game maker studio 2 jump animation

broken image

I'm wondering if it's because Game Maker isn't recognising a variable I made global, called 'ayerspeed' instead of hsp.īy the way, I'm making my game with someone else's code. I even used another solid object (placed over the wall object) and used a normal collision event between that and the player object.

broken image
broken image

Plus, I also used Shaun Spalding's video tutorial about platformer basics, and set a collision checker preventative measure against getting stuck in the walls. I set my player object mask as a sprite, so that the sprites wouldn't change and stick me into the wall.Īlso, I made sure that sprite had an odd number of pixels and set the origin to the exact pixel horizontally in the middle of the sprite.

broken image

So I'm making a fighting game and my character is getting stuck in the walls.

broken image