Hello,
I have a series of hotspots, and I am adding in each of them (using onclick) some images that I want to animate:
Code
<action name="click_action">
inc(scoreInc, 1);
txtadd(xxx,'pg_', get(scoreInc));
addplugin(get(xxx));
set(plugin[get(xxx)].url, skin/pct_f/30-puncte.png);
set(plugin[get(xxx)].align, center);
set(plugin[get(xxx)].alpha, 0);
set(plugin[get(xxx)].enabled, false);
set(plugin[get(xxx)].parent, hotspot[%1]);
animScore(plugin[get(xxx)]);
set(hotspot[get(name)].isstopped, "true");
<!-- hotspot[get(name)].loadstyle("hotspot_ani_white_static"); -->
set(hotspot[get(name)].enabled, "false");
incrementScore();
</action>
<action name="animScore">
tween(%1.y, -50, 1);
tween(%1.alpha, 1, .1);
DelayedCall(1, tween(%1.alpha, 0, .3));
</action>
Alles anzeigen
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