How to correctly use timer?

Non-platform specific questions.

How to correctly use timer?

Postby Kingdaro » Wed Jul 22, 2009 8:46 pm

I'm making a shooter that creates enemies at the top of the screen at random amounts of time. Problem is I don't know how to correctly use the timer event. I went to Add > Timer > Script Editor and typed in CreateActor("enemy", "enemy", "(none)", "(none)", rand(600), -300, false); The enemies aren't being created T.T
Kingdaro
 
Posts: 7
Joined: Sun Jul 19, 2009 2:53 am
Score: 0 Give a positive score

Re: How to correctly use timer?

Postby jimmynewguy » Wed Jul 22, 2009 8:58 pm

how long is your timer? if i'm not wrong i believe 1000 = 1 second
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: How to correctly use timer?

Postby Kingdaro » Wed Jul 22, 2009 9:01 pm

It's random 10-1000 ms.
Kingdaro
 
Posts: 7
Joined: Sun Jul 19, 2009 2:53 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron