Moving an actor issue

JustMe74JustMe74 Member, PRO Posts: 542
edited July 2012 in Working with GS (Mac)
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?

Best Answer

  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,922
    Accepted Answer
    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

  • JustMe74JustMe74 Member, PRO Posts: 542
    LOL that's so obvious... thank you. :)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    All of GS is pretty much obvious. It's just logic and the computer does what you tell it when based on attribute conditions. Learn to look past the GUI and think in logic a to b to c to d.
Sign In or Register to comment.