radar und activated spots

  • hallo Leute,
    ich versuche schon den halben Tag einen radar und die entsprechenden spots auf einer map zu installieren, das hat auch immer problemlos funktioniert.
    Vor ca. einem Monat das letzte mal alles problemlos in eine tour eingebaut.

    Heute funktioniert es mit exakt demselben code nicht mehr *cursing* ich versteh es nicht.
    Ich kann zwar einen einzigen Radar einbauen aber den nicht mit den einzelnen Spots auf der karte verknüpfen.
    Hat jemand eine Idee???????


    Code
    <layer name="radar" visible="false"				       url="plugins/radar.swf" alturl="plugins/radar.js"				       align="lefttop" edge="center" zorder="1"				       scale="0.1"				       fillcolor="0x99cccc" fillalpha="1.0"				       linecolor="" linewidth="0.0" linealpha="0.0" 					   />   		   		   </layer>		   		   		   	 <!-- activated spot image (child of the radar layer) -->		<layer name="activespot" url="" align="lefttop"  scale="0.5" edge="center" ox="0" oy="0" zorder="3" visible="true" />			  		</layer>   		   		   		<!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->	<action name="activatespot">		<!-- copy the spot position to the radar and activespot position -->		copy(layer[radar].x, layer[%1].x);		copy(layer[radar].y, layer[%1].y);		copy(layer[activespot].x, layer[%1].x);		copy(layer[activespot].y, layer[%1].y);
    		<!-- set the radar heading -->		set(layer[radar].heading, %2);
    		<!-- show the radar and the activespot -->		set(layer[radar].visible, true);		set(layer[activespot].visible, true);	</action>


  • Ich präsentiere den Code nochmals direkt, kann man besser lesen:
    in den einzelnen scenes ruf ich die spots auf

    <scene name="scene" onstart="activatespot(spot1);newlink01()" >

    hier der code mit dem es immer funktioniert hat, der einzige Unterschied, diesmal habe ich die Karte unterhalb des Panos positioniert (leftbottom),
    vorher war es links vom Pano(lefttop).


    <layer name="radar" visible="false"
    url="plugins/radar.swf"
    alturl="plugins/radar.js"
    align="lefttop" edge="center" zorder="1"
    scale="0.1"
    fillcolor="0x99cccc" fillalpha="1.0"
    linecolor="" linewidth="0.0" linealpha="0.0"
    />

    </layer>


    <!-- activated spot image (child of the radar layer) -->
    <layer name="activespot" url="" align="lefttop" scale="0.5" edge="center" ox="0" oy="0" zorder="3" visible="true" />


    <!-- activatespot action - %1 = the current spot, %2 = the current radar heading -->
    <action name="activatespot">
    <!-- copy the spot position to the radar and activespot position -->
    copy(layer[radar].x, layer[%1].x);
    copy(layer[radar].y, layer[%1].y);
    copy(layer[activespot].x, layer[%1].x);
    copy(layer[activespot].y, layer[%1].y);

    <!-- set the radar heading -->
    set(layer[radar].heading, %2);

    <!-- show the radar and the activespot -->
    set(layer[radar].visible, true);
    set(layer[activespot].visible, true);
    </action>

    Jemand eine Idee, what´s wrong ?! *cry*

    Edited once, last by cupix (October 18, 2018 at 4:42 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!