====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
script_animation_turn [2014/07/12 21:53] lm13 |
script_animation_turn [2014/09/24 16:11] (current) lm13 [About the script] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * Current Version : 2.1 | * Current Version : 2.1 | ||
| * Link: https://plus.google.com/115366157037831519359/posts/eUtogDspL2X | * Link: https://plus.google.com/115366157037831519359/posts/eUtogDspL2X | ||
| + | * Download avialable! (Check repository) | ||
| ====== Changelog ====== | ====== Changelog ====== | ||
| Line 21: | Line 22: | ||
| ====== Script ====== | ====== Script ====== | ||
| - | <code>//config | + | <sxh javascript;>//config |
| var fade=false; | var fade=false; | ||
| //endconfig | //endconfig | ||
| Line 157: | Line 158: | ||
| item=items.getAt(i); | item=items.getAt(i); | ||
| var data=JSON.parse(item.getTag()); | var data=JSON.parse(item.getTag()); | ||
| + | if(data!=null) | ||
| + | { | ||
| item.setRotation(data.rot); | item.setRotation(data.rot); | ||
| item.setPosition(data.posx,data.posy); | item.setPosition(data.posx,data.posy); | ||
| - | if(fade)item.getProperties().edit().setInteger("i.alpha",255*(percent)).commit(); | + | } |
| + | if(fade)item.getProperties().edit().setInteger("i.alpha",255).commit(); | ||
| } | } | ||
| } | } | ||
| Line 173: | Line 177: | ||
| return [(w*cos+h*sin)*0.5,(h*cos+w*sin)*0.5]; | return [(w*cos+h*sin)*0.5,(h*cos+w*sin)*0.5]; | ||
| } | } | ||
| - | </code> | + | </sxh> |