91
Creativity / Re: Game Design Megathread
« on: October 10, 2016, 08:54:39 PM »quick
how do you make goomba-like enemies (stomping on them kills them) in gamemaker using only drag and drop elements
Try this
Quote
Player: On event collision with goomba object:
[Test Variable] If y is smaller than other.y
This will test if the player is the player is above the goomba, after which you can create a block of actions for how the goomba dies.
Alternatively, you can use this to check for vertical speed instead (the player has to be coming down on the goomba instead of going up into it or sideways)
Quote
If vspeed larger than other.vspeed
This is assuming, of course, you're using default vspeed for character gravity and not some custom variable or just moving the character down.