Add timer

Talk about making games.

Add timer

Postby VYTIS_KNIGHT » Wed Sep 22, 2004 3:04 am

Can anyone tell me how to add a timer to an actor? I need step by step instructions.
VYTIS KNIGHT
VYTIS_KNIGHT
 
Posts: 29
Joined: Tue Jun 15, 2004 2:33 am
Score: 0 Give a positive score

Postby jazz_e_bob » Wed Sep 22, 2004 4:47 am

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.
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Wed Sep 22, 2004 12:40 pm

See the Timers tutorial:

Help -> Events and Actions -> Timers
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron