Quote:
Originally Posted by PiNPOiNT Hello
I'm trying to slide a image from off screen onto the main menu when it loads up.
my code is
<control>
<description>speedlines</description>
<type>image</type>
<id>1</id>
<posX>-5464</posX>
<posY>120</posY>
<texture>speedlines.png</texture>
<animation effect="slide" end="1366,0" time="2000">WindowOpen</animation>
<animation effect="slide" end="1366,0" time="2000">WindowClose</animation>
</control>
From what i understand, the image should start at negative 5646 and slide across the screen to finish at 1366 over a period of 2000ms
however when the image is starting off screen, the animation wont play it seems, is this a bug? or did i code it in correctly?
Thanks |
Test
<control>
<description>speedlines</description>
<type>image</type>
<id>1</id>
<posX>1360</posX>
<posY>120</posY>
<texture>speedlines.png</texture>
<animation effect="slide"
start="-1360,0" time="2000">WindowOpen</animation>
<animation effect="slide" end="-1360,0" time="2000">WindowClose</animation>
</control>
The skin engine has a bug that does not show the image sometimes if it has been outside the screen.
So you have to experiment with diffret values.