The Daily Click ::. Forums ::. Klik Coding Help ::. Enemy movement?
 

Post Reply  Post Oekaki 
 

Posted By Message

tobbe



Registered
  26/05/2003
Points
  41
26th May, 2003 at 13:56:35 -

I need help! How do you make the enemy move towards the main character, or how to make random movement????

 
pixel artist

Blackgaze

Possibly Insane

Registered
  01/11/2002
Points
  3161

VIP Member
26th May, 2003 at 14:30:27 -

to make an enemy move to a charater:

1. make the enemy a BOUNCING BALL OBJECT
2. in the EVENTS do this: (its a choice between ALWAYS AND EVERY TIME (TIME: 1 second, 0.50 milliseconds example)

-Always or every TIME: set ENEMY direction to MAIN CHARATER




Random movement is done 2 ways for me:

1st way
1. set ENEMY movement to BOUNCING BALL
2. create OBJECTS (WAYPOINTS) and make sure in events they are INVISIBLE
3. event like this:

every 1.00 second: set DIRECTION of ENEMY to waypoint
+ pick WAYPOINT at random

2nd way
1. Set ENEMY movement to BOUNCING BALL
2. create an event like this:

every 1.00 second: set direction of ENEMY to all the direction arrows.

Thats is what i would do (propely useless)



 
Formerly known as "Spiderhead".

Returned after four years.
www.youtube.com/user/sevlech for more infomation
   

Post Reply



 



Advertisement

Worth A Click