animate problem

sdx1987sdx1987 Member Posts: 44
edited November -1 in Working with GS (Mac)
i hope that when i touch and holding a button then play a animate .when i release the button then stop the animate.
how to do that?thanks. run in iphone.

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Rule:
    When touch is pressed.
    Animate
    Change attribute self.Color.Alpha to 1
    Otherwise:
    Change attribute self.Color.Alpha to 0

    Hope that helps.
  • sdx1987sdx1987 Member Posts: 44
    thanks,could you tell me where is the alplha of the animate.

    and sorry i didn't say clearly

    and i hope when i release the button then stop the animate.
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    In the way I said, you will have an actor. When you pressed it with your finger, then the animation starts, when you realese your finger then actor becomes invisible so there is no animation.
    When you touch your actor again, then he become visible and animation starts from the beginning.

    I think that you can also delete change attribute behaviors, and this will still working (but I'm not sure, and I don't have my Mac around right now).
  • sdx1987sdx1987 Member Posts: 44
    thanks i'll try this way.
  • sdx1987sdx1987 Member Posts: 44
    thanks it works well.
Sign In or Register to comment.