Moving an actor issue
I'm trying to do the following-
When an actor is touched, it moves to another spot on the screen, and then the image of the actor changes to something different.
I have set this up:
Rule: When touch is released, and an attribute I call game.Page5ChipRight is False :
Animate/Loop Animation
Move To a spot on the screen, relative to scene, run to completion
Change Image to a different image
There are two issues:
1). The "Change Image" instantly fires off without waiting for the Move To to complete
2). The animation keeps looping after it gets to where it's going (this is because I don't change my game.Page5ChipRight to True; however, if I put logic in to do that, it gets fired off right away just like the Change Image behavior).
How can I have commands execute after the Move To is finished and not before?
When an actor is touched, it moves to another spot on the screen, and then the image of the actor changes to something different.
I have set this up:
Rule: When touch is released, and an attribute I call game.Page5ChipRight is False :
Animate/Loop Animation
Move To a spot on the screen, relative to scene, run to completion
Change Image to a different image
There are two issues:
1). The "Change Image" instantly fires off without waiting for the Move To to complete
2). The animation keeps looping after it gets to where it's going (this is because I don't change my game.Page5ChipRight to True; however, if I put logic in to do that, it gets fired off right away just like the Change Image behavior).
How can I have commands execute after the Move To is finished and not before?
Best Answer
-
The_Gamesalad_Guru Posts: 9,922
Here is what you do. Add rule inside that rule. When attribute self.position x = (position you want)
Change image
Change Boolean to true.
Answers
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS