Random spawning WITHOUT timer?

KumkaniKumkani Member, PRO Posts: 28

So when my game ends i have a character come out and say something, so at different score point i managed a different actor/different speech. after a ceiling score I want the game to cycle amongst the three randomly. how do I{ do this? Currently I have the actor spawning up to onescore, then another between that score and another then one more after that score. I want a fourth option to randomize those actors, but it's just ONE spawn when the game ends before we go back to reset.

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    Change attribute.X to random (1,5)

    If X = 1 then do this . . .

    If X = 2 then do this . . .

    If X = 3 then do this . . .

    . . . etc

  • KumkaniKumkani Member, PRO Posts: 28

    ok I get it, i've done it but it isn't working. I set up an interger called endspawn, set an attribute if gamescore is greater than or equal to x change endspawn to random

    then i assigned each actor to a number for the endspawn. when the conditions are met, nothing happens.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Post a screenshot of your rules. Something may not be set up correctly.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822
    edited November 2014

    @Kumkani said:
    ok I get it, i've done it but it isn't working. I set up an interger called endspawn, set an attribute if gamescore is greater than or equal to x change endspawn to random

    then i assigned each actor to a number for the endspawn. when the conditions are met, nothing happens.

    Like tatiang says, you have most likely set it up incorrectly, without seeing your rules that's all anyone can really say at this stage.

Sign In or Register to comment.