The Daily Click ::. Forums ::. Klik Coding Help ::. Help with events when enamy is within 100 pixels of object
 

Post Reply  Post Oekaki 
 

Posted By Message

flashfire



Registered
  03/12/2010
Points
  7
13th January, 2011 at 06:44:35 -

im trying to make my "push boxes" which keep an enemy within an area (the right push box tells the enemy to go left when reaching the end of the area stopping it from leaving the area) destroy them selves when there are no enemies around. what would be the easiest way to do this?

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
13th January, 2011 at 08:57:19 -

Why do you need them to destroy themselves? That isn't really necessary. It all depends on how you have the enemies coded - built in movements or custom?

Just make an active object and place it where you want the enemies to stop/change directions.

enemy collides with object > change direction.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click