Page 1 of 1

enemy shot

PostPosted: Mon Mar 13, 2006 2:45 am
by The achievement
Hi can i use a rand() event just for any random enemy can shoot me, cause i really dont like timers i dont know how to use them, so can i do rand()1*10 on enemy shooting me?

PostPosted: Mon Mar 13, 2006 12:19 pm
by Troodon
You can't do random time with rand() function.
You need to use timers...eden for 1 sec durations.
But it's much easier to use timer function wich Macslane made for us than do it in the global code. :D

PostPosted: Mon Mar 13, 2006 4:04 pm
by The achievement
ok so i create a timer and put that timer on the bomb? from 2000 to 5000 ms. right?

PostPosted: Mon Mar 13, 2006 6:55 pm
by Troodon
er...put the timer in the enemy wich creates the bombs.

PostPosted: Mon Mar 13, 2006 10:03 pm
by The achievement
i got ya! and what does er... mean? you mad or somthing

PostPosted: Tue Mar 14, 2006 1:14 pm
by Troodon
'er' means that I freezed. (or something like that)
If somebody says: "Once upon a time there was...er...er...er....er", he has freezed. (I use it like that but I don't know how brithish and yanks are using it.)