Random Spawner Hates Me
![Marc_n_Soph](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello and good evening one and all.
Please help me! I have trawled the forums, hit my head on the wall, and everything.
I know there is a lot of info out there about "random", but I cant find a fix for this particular thing!
I have four actors, one actor in the scene to start off, that spawns another actor in a random place when pressed, then destroys itself.
Like this:
When touch is pressed, change attrib spawner random (1,4)
Timer - After 0.01 seconds destroy this actor.
Actors
when game.spawner = 1 spawn red actor
when game.spawner = 2 spawn blue actor ... etc
This works fine, but only for a max of seven "spawns", (sometimes less) then nothing.
No more actors appear.
What am I doing wrong?
Thanks loads for reading!
Marc n Soph
Please help me! I have trawled the forums, hit my head on the wall, and everything.
I know there is a lot of info out there about "random", but I cant find a fix for this particular thing!
I have four actors, one actor in the scene to start off, that spawns another actor in a random place when pressed, then destroys itself.
Like this:
When touch is pressed, change attrib spawner random (1,4)
Timer - After 0.01 seconds destroy this actor.
Actors
when game.spawner = 1 spawn red actor
when game.spawner = 2 spawn blue actor ... etc
This works fine, but only for a max of seven "spawns", (sometimes less) then nothing.
No more actors appear.
What am I doing wrong?
Thanks loads for reading!
Marc n Soph
Comments