Dump noob timer question

Game Editor comments and discussion.

Dump noob timer question

Postby oswald » Thu Apr 28, 2005 3:23 pm

I know, this might be a dump question... but checking the tutorials and some demos did not really brighten me up.
How can I have objects appear at random x-positions on the top of the screen. While the amount of objects and object-speed increases the more time is going by...
oswald
 
Posts: 5
Joined: Wed Apr 27, 2005 8:14 pm
Score: 0 Give a positive score

Postby ingsan » Fri Apr 29, 2005 3:57 am

VERY Rough and DIRTY
Put an invisible actor that holds a code that looks something like this :
On Draw actor > Create Timer A
On Timer A > Create actor (yourActor)
And finally on yourActor, put something like this :
On Create actor > Script >
    x = rand(xscreen) ;
    y = rand(yscreen)

Not sure of the vocabulary :?
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron