You are not logged in.

1

Sunday, June 26th 2016, 10:49am

fading the radar plugin flicker troubles (new source?)

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.

Source code

1
2
3
4
5
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


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<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>

This post has been edited 2 times, last edit by "indexofrefraction" (Jun 26th 2016, 11:21am)


Similar threads