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.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!