Rule in a Rule wont work
MichaelK1985
Member Posts: 36
I currently working on a game and I can't get this to work.
I want this:
I want a go button when a attribute = or is greater than 2.
I get the image, that change good!! But I also want a rule that when you touch the button you go to the next scene. But that won't work. Any ideas about this?
http://i43.tinypic.com/2pzh741.jpg
I want this:
I want a go button when a attribute = or is greater than 2.
I get the image, that change good!! But I also want a rule that when you touch the button you go to the next scene. But that won't work. Any ideas about this?
http://i43.tinypic.com/2pzh741.jpg
Comments
Calvin
Destroy this actor
. . . . and . . . .
Spawn Actor (make the actor that is spawned your 'go button' / position 0 and 0)
____________________________________
Now place this rule on the actual 'go button' itself:
When touch is pressed:
Go to scene (Next scene).
think it might be the nested Rules …
Try with 2 separate Rules:
Rule 1: when
Attribute: {game.Team...} ≥ 2
--changeAttribute: self.Image To: {go-button.png}
Rule 2: when (All)
Attribute: self.Image is go-button.png
Actor receives event: touch is pressed
--changeScene
MH
What Tynan and MotherHoose said already, basically. :P