Linking attributes

I'm trying to create a turn based game, which I've heard is difficult with gamesalad, and I've encounter a problem. My main actor is shared by two players, so I have created a Boolean attribute called home turn. When the attribute changes from true to false the actor changes color to show who's turn it is to shoot. This works perfectly, but I plan on creating a rule for an extra shot, that stipulates if the actor collides with certain actors the hometurn attribute should stay the same. I tried to create another Boolean attribute called extra shot, but this has not worked. Can someone offer me some guidance?

Comments

  • mrpacogpmrpacogp Member Posts: 400
    Maybe move in the last attrib inside a rule?
  • rrosario007rrosario007 Member, PRO Posts: 15
    That's what I'm trying but it's not working. Let me try to explain it in another way.

    I have a Boolean attribute that I want to alternate between true and false after an actor changes velocity and stops, unless that actor collides with two unique actors. If the actor that is changing velocity collides with the other two actors I want the Boolean attribute to stay the same (as it originally was).
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Add that second Boolean to the all condition of the rule that switches players.

    So rule

    When ALL. Actor.stops= true And actor.collides= false

    Switch to player 2

    Not sure how you switch the player but I think you see what I mean.
Sign In or Register to comment.