Goomba-Like Enemies
Hey,
So, if you have ever played any Mario games, one of the main enemies are goombas. To kill them you must jump on top of them, but if you hit the sides, you get damaged. Is there a way to do his on GS easily? If so, please tell me.
So, if you have ever played any Mario games, one of the main enemies are goombas. To kill them you must jump on top of them, but if you hit the sides, you get damaged. Is there a way to do his on GS easily? If so, please tell me.
Best Answer
-
domenius Posts: 108
if player.y>self.position.y+(self.size.height/2)+(player.size.height/2) -1
^Only the top row of pixels on an actor will trigger this rule. Players height can be a constant instead of a calculation if your players are always the same size. Wrap your goomba kill sequence in this rule and you should be good to go.
Answers