Page 1 of 1

Is there a way to do this?

PostPosted: Wed Mar 15, 2006 7:53 pm
by The achievement
Ok well i want my superduper boss to shoot his weopen when i get to him at the end of level one. I dont want him to just shoot, i want him to shoot when i get there, when i can see him. is there a way i can do this?

PostPosted: Wed Mar 15, 2006 10:50 pm
by Novice
Check the distance betwen the player and the boss and then create a timer that will make the boss shoot. distance is checked using this code
Code: Select all
distance(player.x,player.y,boss.x,boss.y);

PostPosted: Tue Mar 28, 2006 6:17 pm
by frodo
you mean he shoots without you pressing the botton that makes him shoot?

to do that, do:

collision on any side of finish-->createactor("bullet"....)

hope that works.