Slide image from off screen? (1 Viewer)

PiNPOiNT

New Member
May 15, 2007
4
0
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
 

mirk

Retired Team Member
  • Premium Supporter
  • June 2, 2006
    863
    64
    Växjö, Sweden
    Home Country
    Sweden Sweden
    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.
     
    December 28, 2005
    237
    3
    Sydney
    Home Country
    Here is a copy of the code in which i have something slide in from off screen the move up when the window is opened.

    Code:
    		<control>
    			<description>menu cover top</description>
    			<type>image</type>
    			<id>0</id>
    			<posX>300</posX>
    			<posY>130</posY>
    			<width>711</width>
    			<height>178</height>
    			<texture>menu_cover_top.png</texture>
          <animation effect="fade" time="200" delay="310">WindowOpen</animation>
          <animation effect="fade" time="400" delay="400">WindowClose</animation>
          <animation effect="slide" time="400" start="-800,0" delay="310">WindowOpen</animation>
          <animation effect="slide" time="400" start="0,0" end="0,-100" delay="700">WindowOpen</animation>
          <animation effect="slide" time="400" start="0,-100" end="0,0" >WindowClose</animation>
          <animation effect="slide" time="400" end="800,0" delay="400" >WindowClose</animation>
    		</control>


    "start=0,0" is the starting pixal off set for the slide from the orignal postion( <posX>300</posX><posY>130</posY>).

    "end=0,0" is the end of the slide pixal off set
     

    Users who are viewing this thread

    Top Bottom