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
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).
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.