hi klaus,
i have problems fading a layer containing my radar
it always slightly flickers :(
so i thought i have a look if i can find the problem in radar.js
would it be possible to get the newest source ?
the code you posted on the plugin site is from 1.18.1
or.. do you know why it flickers?
i suspect the redraws of the radar cone mess with the visibilty
i just do it like below,
but right with loadscene() call.
Code
set(layer[skin_imagemap_radar_container].alpha,0);
<!-- ... calculate new position of radar ... -->
copy(layer[skin_imagemap_radar].x, x);
copy(layer[skin_imagemap_radar].y, y);
tween(layer[skin_imagemap_radar_container].alpha, 1, 0.5, easeInQuart);
(i tried both, calling loadscene before or after the tweening, but both flickers)
best,
index
Code
<layer name="skin_imagemap_radar_container" keep="true" type="container" maskchildren="true" enabled="false" align="topleft">
<layer name="skin_imagemap_radar" keep="true"
enabled="false"
url.flash="%HTMLPATH%/plugins/radar.swf"
url.html5="%HTMLPATH%/plugins/radar.js"
align="lefttop"
edge="center"
x="100" y="100"
scale="0.5"
heading="0.0"
headingoffset="90.0"
fillcolor="0xFFFFFF"
fillalpha="0.2"
linewidth="1.0"
linecolor="0xFFFFFF"
linealpha="0.7"
invert="false"
editmode="false"
/>
</layer>
Display More