either/or statement?

hey, im new to gamesalad :smile:
im currently are in progress making a really simple game for my first experiment with gamesalad on windows
however i cant seem to find "or"/"either" statement inside the "do"

how can i make the same actor spawn either of actor at random time?

e.g; after random(5,7)second "currentActor" , spawn either "actorA" or "actorB"

Comments

  • YonpieceYonpiece Member Posts: 2

    :blush: i hv found one way by using attribute as to solve my problem there.
    by first adding interger atribute to the actor and i make it to "1".

    after that make rules to the actor to change the value to random(2,3)

    e.g if self."myattributename" = 1
    "do" change attribute to random(2,3)

    then make second rule for "if and else" statement

    e.g if attribute value is "2" spawn "this" else spawn "that"

    still, i dont know if this is the best way as alternative for "either/or" to use for long time.
    and i appriciate any help for other more efficient ways to do it.

Sign In or Register to comment.