Random Actor Creation at Timed Intervals

Game Editor comments and discussion.

Random Actor Creation at Timed Intervals

Postby Bluez » Sun Oct 08, 2006 2:20 am

How can I using Script create a Actor that Creates another Actor at Timed Intervals.

Example would be 10 secs createActor then 20 secs createActor and so on...

Anyhelp would be appreciated Thanks.

Bluez
Bluez
 
Posts: 1
Joined: Sun Oct 08, 2006 2:06 am
Score: 0 Give a positive score

Postby makslane » Mon Oct 09, 2006 5:39 pm

After create your timer definition, you can use the CreateTimer function to change the timer value:

Code: Select all
CreateTimer("Event Actor", "my tymer", time);
time *= 2; //For the next call


And call the Create Actor action in the Timer event
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest