Multiple Select Question
TouchTiltGames
Member Posts: 1,162
Ooookay I'm close to getting this but not 100%.
So I have an Options screen and in it you can select a colour. Once you're in playing the game, an actor changes to that colour.
In Options on each of the Colour actors:
Change game.ActiveColour to 0
Rule: When touch is pressed
change: game.linecolourRed to 1
game.ActiveColour to 1
Save: game.linecolourRed key: red
In the game on the actor:
When game.linecolourRed = 1
Change Image
I can get two to work in a row, if I try and select a third colour from the options screen, it'll pick a different colour. I've also tried constrain in place of change, that didn't work.
Anyone have experience with this before?
cheers.
So I have an Options screen and in it you can select a colour. Once you're in playing the game, an actor changes to that colour.
In Options on each of the Colour actors:
Change game.ActiveColour to 0
Rule: When touch is pressed
change: game.linecolourRed to 1
game.ActiveColour to 1
Save: game.linecolourRed key: red
In the game on the actor:
When game.linecolourRed = 1
Change Image
I can get two to work in a row, if I try and select a third colour from the options screen, it'll pick a different colour. I've also tried constrain in place of change, that didn't work.
Anyone have experience with this before?
cheers.
Comments
seems like the linecolourRed is not being reverted... possibly because of the Save
perhaps if you try an Index type Attribute for your colors
0= white, 1=Red etc.
then in Option Scene...on each selectorActor Rule when touch is pressed changeAttribute game.colorIndex To: myIndex#
then in play scene on the Actor >> Rule when colorIndex= # ...changeImage To:
and put the SaveAttribute on the play scene and not the option scene
MH