Spawn sets of actors

gineepiggineepig Member Posts: 26
edited October 2013 in Working with GS (Mac)
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--Timo- Posts: 2,313
    Accepted Answer
    Make 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

Sign In or Register to comment.