Help Randomly Spawning Actors on screen...
Help Randomly Spawning Actors on screen... I have an actor that starts on the top of the screen with gravity pulling it down. I need to spawn another actor directly above it once the actor goes down a certain hieght can someone assist me with this ?
Comments
For example
When .. attribute ... self.Postion.Y ... = 160
Spawn Actor ... Position ... 0 ... 160 ... Relative to actor
Set an integer attribute, e.g. "numbertospawn" up for your original actor. Make it equal to 6 or any other integer.
When .. attribute ... self.Postion.Y ... = 160
Change attribute numbertospawn to random(1,5)
When .. attribute.. numbertospawn = 1
Spawn Actor ... Position ... 0 ... 160 ... Relative to actor
Change attribute numbertospawn to 6
When .. attribute.. numbertospawn = 2
Spawn Actor ... Position ... 0 ... 160 ... Relative to actor
Spawn Actor ... Position ... 0 ... 180 ... Relative to actor
Change attribute numbertospawn to 6
etc... don't know if you want them overlapping or stacked, but you get the picture.