Hotspot PNG Animation - Play on hover, reverse on out

  • Hello,

    I've got a hotspot in my scene. It's a png sequence that starts playing on mouse hover, then stops on the last frame. My issue is getting it to play backwards.

    I tried reversing the png file and setting the hotspot url to the reversed png 'onout', but this didn't work very well. There was a gap that you can see when it switches out the url for the png.

    Here's my code. My hotspot is called listen_pin, which has 7 frames (including frame 0). It calls the action hotspot_animate on hover, and hotspot_ranimate on out (reverse animate).


    tour.xml:

    vtourskin:

    Any help would be greatly appreciated, thanks in advance!

    Regards,
    Sam

  • Using 500*20000 png vertical stipe. Adapt framewidth/heing, lastframe and url for your stipe. Code could be optimized but as quick solution you can use this.

  • Hey Umalo,

    Thank you! It works perfectly. I didn't even think to use dec on the frame number to play it backwards... sometimes it's the simple things that slip by!

    Kind regards,
    Sam

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!