how to make my enemy character to jump
Posted:
Thu Dec 29, 2011 1:21 am
by raminkhan
I am trying to make a jump movement but this time the enemy character jumps not my player. I mean I am not trying to make a button for jump for my character in the game its the enemy character that is going to jump from platform to platform.
Re: how to make my enemy character to jump
Posted:
Thu Dec 29, 2011 4:53 am
by skydereign
How will the enemy know when to jump? That is a question you have to be able to answer for you to set this up. Chances are that you want the actor to jump when it reaches the end of a tile. But, to make the actor jump, it works exactly like it would a normal jump, but you put the code into the event that determines when the actor should jump (use an if statement in draw would work).