How do I change Scene after animation runs its course?

bluelotusbluelotus Member Posts: 96
edited November -1 in Working with GS (Mac)
So I have a button that triggers an animation. I want the scene to change when the animation finishes its cycle. Is there a way to add an integer attribute to the images of the animation, or is there an easier way that I am not thinking of?

Comments

  • chosenonestudioschosenonestudios Member Posts: 1,714
    timer: after .1s (after animations finished) >>>. change scene
  • chosenonestudioschosenonestudios Member Posts: 1,714
    when touch is pressed:

    animate 10fps (10pics) = 1s

    timer:after 1s >>> change scene

    :D
  • bluelotusbluelotus Member Posts: 96
    Thanks, chosenonestudios. I though about doing that but I couldn't seem to figure out where to put that attribute. Within the rul or on its own?
  • chosenonestudioschosenonestudios Member Posts: 1,714
    when touch is pressed: (rule, everything goes inside this rule)

    animate 10fps (10pics) = 1s

    timer:after 1s >>> change scene (rule, change scene goes inside here)
  • jstrahanjstrahan Member Posts: 498
    Set a rule on your animation that checks for the last image file name to trigger the change scene it's under self.graphics.image
Sign In or Register to comment.