Spawn sets of actors
gineepig
Member Posts: 26
So what I would like to do is, like in doodle jump or lots of other endless runners, be able to spawn random tables consisting of a couple different kinds of actors and lots of them. So like a set of(from doodle jump) the normal platforms, breakable ones and moving ones that would spawn then move down the screen, then another set after that and so on.
Best Answer
-
-Timo- Posts: 2,313Make a integer attribute (lets say we call it spawn actor)
Change game.spawn actor to random(1,5)
If game.spawn actor=1
Do spawn actor1
If game.spawn actor=2
Do spawn actor2
Etc.
Hope this helped
Answers