how to make my enemy character to jump

Non-platform specific questions.

how to make my enemy character to jump

Postby raminkhan » Thu Dec 29, 2011 1:21 am

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.
Attachments
Untitled.png
raminkhan
 
Posts: 63
Joined: Mon Sep 12, 2011 3:35 pm
Score: 0 Give a positive score

Re: how to make my enemy character to jump

Postby skydereign » Thu Dec 29, 2011 4:53 am

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).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest