forward animation on rollover, play backwards rolloff?

0 favourites
  • 8 posts
From the Asset Store
This Student Workbook uses both Construct 3 & 2 encoding. It supplies client-side & php "back-end" encoding.
  • Thinking about button effects and wondered if there was an easy way to play an animation forward when the mouse or something is overlapping and then when it leaves the overlapped area the animation plays backwards to stop at the original frame.

    Think of a flower blooming on rollover and then when the mouse leaves the flower curls back up in to a bud..

    thank you!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't know if it can be done like you want to, playing the animation forward and then backward. You can however create two animations using the same frames. One animation for the flower opening and another one for the flower closing.

    Then whenever the player interacts with the flower overlapping it or not you just change the animation it should be playing.

  • I don't know if it can be done like you want to, playing the animation forward and then backward. You can however create two animations using the same frames. One animation for the flower opening and another one for the flower closing.

    Then whenever the player interacts with the flower overlapping it or not you just change the animation it should be playing.

    Awesome idea! I still don't get how I'd make the 2nd animation play if the overlapping sprite leaves the active area though..

    I might play with boolean instance variables or something for "on/off" switches in the animation functions.. never thought of that.

  • something like this?

    I'll have to check this out when I get back on my production computer. You wouldn't happen to have a demo would you?

  • Demo

  • AWESOME!

    I'll have to take a look at the events later but this is what I'm after.

    Thank you!

  • here you go its a 400 kb capx cause of the images i used are pretty big in weight, but all depends on your png, jpeg, it can be used on any object as long as you have animation frames, works on mobile also

    Download

    image1 image2

    also for more cool stuff if you need check this forum topic i madehere , and scirra tutorials section fromhere!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)