|
|
Source code |
1 2 3 4 5 |
<layer name="glaceannou" url="images/glaceannou.png" align="topleft" x="10" y="10" style="tooltip" tooltip="Intégrez votre Mascotte" keep="true" onclick="flyin(zoom-mascotte);" onlaoded="execute(beat-spots)" /> <action name="beat-spots"> tween(layer[glaceannou].scale,1.0,0.5,default); </action> |
|
|
Source code |
1 2 3 4 5 6 7 |
<layer name="glaceannou" url="images/glaceannou.png" align="topleft" x="10" y="10" scale="1.0" onclick="flyin(zoom-mascotte);" onloaded="beatspots();" /> <action name="beatspots"> tween(layer[glaceannou].scale,0.5,2);<!-- 0.5 - target scale, 2 - time --> </action> |
|
|
Source code |
1 2 3 4 5 6 |
<layer name="glaceannou2" url="images/glaceannou.png" align="middle" x="10" y="10" scale="1.0" onclick="flyin(zoom-mascotte);" onloaded="beatspots();" onover="tween(alpha,0.5);" onout="tween(alpha,1.0);" /> <action name="beatspots"> tween(layer[glaceannou2].alpha,0.5,1.0);<!-- 0.5 - target scale, 2 - time --> </action> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
onstart="beatspotsOn()" <layer name="glaceannou2" url="images/glaceannou.png" align="middle" x="10" y="10" scale="1.0" onclick="flyin(zoom-mascotte);" onover="tween(alpha,0.5);" onout="tween(alpha,1.0);" /> <action name="beatspotsOn"> tween(layer[glaceannou2].scale,2,1,true);<!-- 0.5 - target scale, 2 - time --> delayedcall(1.0, beatspotsOff() ); </action> <action name="beatspotsOff"> tween(layer[glaceannou2].scale,1,1,true);<!-- 0.5 - target scale, 2 - time --> </action> |
|
|
Source code |
1 2 3 4 5 |
<action name="beatspotsOn"> delayedcall(5.0,tween(layer[glaceannou].scale, 1.2, 0.5, default, tween(layer[glaceannou].scale, 1, 0.5, default, beatspotsOn() ) )); </action> <layer name="glaceannou" url="images/glaceannou.png" align="topleft" x="10" y="10" tooltip="Intégrez votre Mascotte" keep="true" onclick="flyin(zoom-mascotte);" onover="tween(alpha,0.5);" onout="tween(alpha,1.0);" /> |