Page 1 of 1

Add timer

PostPosted: Wed Sep 22, 2004 3:04 am
by VYTIS_KNIGHT
Can anyone tell me how to add a timer to an actor? I need step by step instructions.

PostPosted: Wed Sep 22, 2004 4:47 am
by jazz_e_bob
Create an actor and call it "gun".

Create another actor and call it "bullet".

When the bullet is created set its xvelocity to 10.

When the gun is created add the action "create timer".
Make a new timer called "shoot". Set it for 500ms.

Now add a timer event to the gun. Select the "shoot" timer. Make the action "create actor". Create a "bullet".

The gun will now shoot bullets across the screen at 500ms intervals.

PostPosted: Wed Sep 22, 2004 12:40 pm
by makslane
See the Timers tutorial:

Help -> Events and Actions -> Timers