TheSpiritHero
Member
I am trying to create a goomba like enemy for my personal project but i don't know how to make so that the enemy can be stomped if you jump on it and kill you if he touches you from the sides, can somebody help me with that?
Are they any free courses that teach me how to make this?There are some great tutorials for making platform games on yoyomarketplace.
Are you using GML or Drag and Drop? And what have you tried so far?can somebody help me with that?
I am using gml and i have only tried the basicsAre you using GML or Drag and Drop? And what have you tried so far?
thanks I will try thatSounds like the issue is determining the direction of the collision.
I'd recommend putting code in the collision event that checks to see if the oPlayer.y value is less than the oGoomba.y value. If the player's y is lower, they must therefore be higher, and should be "stomped" this way.
it worked thanks!Sounds like the issue is determining the direction of the collision.
I'd recommend putting code in the collision event that checks to see if the oPlayer.y value is less than the oGoomba.y value. If the player's y is lower, they must therefore be higher, and should be "stomped" this way.