Spawn Actor every 2 seconds with Timer. Help!
MLCinema
Member Posts: 133
Hello All,
I am trying to spawn an actor every 2 seconds, but it seems to not be working. I have a timer (every 2 seconds - spawn actor, actor 2).
It only spawns one actor. Is this not how to accomplish this?
Thank you.
I am trying to spawn an actor every 2 seconds, but it seems to not be working. I have a timer (every 2 seconds - spawn actor, actor 2).
It only spawns one actor. Is this not how to accomplish this?
Thank you.
Comments
I've just done a small test, 2 actors, first actor acting as the trigger button to spawn the 2nd actor; rules in first actor:
When actor receives event touch is released
Timer Every 2 seconds
Spawn Actor 2
Position random(0,480) random(0,360) Relative to scene.
you'll be able to amend this to your own needs, I'm certain (i.e you might not have a button to trigger this for example). Hope that helps you. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Is the actor spawning in the same place as the one before it? I want a bunch of actors to spawn and move towards the middle actor.
Thank you all again.
Edit: here's the link: http://gamesalad.com/game/6267?GSCVersion=0.9.0&tokenUsername=gyroscope&token=21bda8575518435895927d85d28c4aa6846e98828c65a3c4a545676c26bc13f5
I ticked the box for sharing/downloading but there's no download button showing for some reason. If this is what you're after, perhaps drop me a line at spidergriffin@tiscali.co.uk and I'll send you the file.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Edit: got your email; sending file now.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Here's the link anyway:
http://gamesalad.com/game/6359?GSCVersion=0.9.0&tokenUsername=gyroscope&token=a5a67008e1099566d44d725ec902bdde906f968ef99d1190659baac05daefc83
I'll email the game file to you now. And if anyone else wants this game file, please email to the address given above and I'll send you a copy as well.
:-)
Edit: added: don't forget to add Destroy in the 4 spawned actors when they've reached the middle, or you'll get a bit of a clog-up! (forgot to do this in the file I sent).
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps