parallel tweens not overwrite?

  • Hello,

    I have a series of hotspots, and I am adding in each of them (using onclick) some images that I want to animate:

    My problem is that the tweens are overwriting.....so I click a hotspot>> animation inside starts ok>> click another>>the animation in previous is stopped and so on.

    Is there a solution for this? a simply want to have animations in each hotspot completing on their own and don't have them stopped when I click on other hotspot.


    Thank you,
    W

  • Hi,

    the problem is the get(...) inside the text that will be passed to the tween():
    plugin[get(xxx)]

    that get() will be resolved each time the tween will be updated.

    (Btw - that will be changed in the next krpano version 1.18 - there all get() requests inside a tween variable will be resolved automatically before the start of the tween action)

    A way to bypass this behavior would be to change the action code a bit and pass the resolved get() to the sub-action,
    e.g.

    Code
    animScore(get(xxx));

    and:

    Code
    <action name="animScore">
      tween(plugin[%1].y, -50, 1);
      tween(plugin[%1].alpha, 1, .1);
      DelayedCall(1, tween(plugin[%1].alpha, 0, .3));
    </action>

    Best regards,
    Klaus

Jetzt mitmachen!

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