Random Spawner Hates Me

Marc_n_SophMarc_n_Soph Member Posts: 111
edited November -1 in Working with GS (Mac)
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

Comments

  • jobonoobdudejobonoobdude Member Posts: 152
    I have the same problem man! I followed the "spawning random actors in random positions" tutorial in the cookbook but I had the same problem. If anyone helps, I will send many thank yous!
Sign In or Register to comment.