Scheduling actors to spawn in sequence...

LoadedLoaded Member Posts: 240
edited August 2013 in Working with GS (Mac)
...is it possible to have a table of actors and positions and have a spawner, spawn them in a sequence?!

Still a bit of a noob but getting a lot of help from reading the forums and checking out the tutorials.

Thanks, Loaded :)

Comments

  • LoadedLoaded Member Posts: 240
    Hey, so I've kind of managed to do what I wanted by having a table with X and Y values and spawn the same actor (for now) in different Y positions in the table using the theory used in @tshirtbooth 's video...



    Problem is, when it gets to the end of the rows in the table (8 rows) it does not return to row 1... How can I get it to go back and cycle through the rows?

    In the video @tshirtbooth stops short of putting some brackets around the change attribute and answering my question for me lol
  • LoadedLoaded Member Posts: 240
    Ok, keep answering my own questions here lol.

    I've managed to make my table loop with the modulus operator % and a number, but instead of looping back to row 1 it is looping to the default actor position of 0 (x) and 0 (y)???

    I'm either learning, or becoming more confused.
  • quantumsheepquantumsheep Member Posts: 8,188
    Off to bed, but you're doing good! Keep at it! :D
  • ericzingelerericzingeler Member Posts: 334
    to loop back to 1:

    ( ( tableIndex ) + 1 ) - 1 ) % maxIndex + 1
  • LoadedLoaded Member Posts: 240
    Nice one, @ericzingeler that did the trick :)
Sign In or Register to comment.