Page 1 of 1

Random enemies coming out of the screen?

PostPosted: Mon Jun 05, 2006 6:35 pm
by The achievement
Hi guys, is there any way i can make random(or just one actor)enemies keep coming out of the screen?

PostPosted: Tue Jun 06, 2006 12:46 am
by makslane
You can use two actors: an factory and your random actor.

In the factory actor, add a timer that will create the random actor.
You can put the factory outside the view or disable the visible state.

In the 'Create Actor' event of random actor, use a code like this:

Code: Select all
xscreen = rand(view.width);
yscreen = rand(view.height);