Monday 7 January 2013

Open the door! complete !

Open the door! complete !

Start 2013 with a new tile animation, "Open the door!" 


There are 13 frame for close/open the door, every frame shift 8 pixel up/down the grid.

I have add a new command, now in tile sequence XML you can specify the "delay" for each frame animation, this is usefull for close "step by step" slowly the grid of the door.
Like this:


     <Frame>
        <type>SPRITE</type>
        <name></name>
        <value>Tiles/DoorA_3</value>
        <stoppable>true</stoppable>
        <xOffSet>0</xOffSet>
        <yOffSet>0</yOffSet>
        <delay>1</delay>
      </Frame>


Another new features can be found in room XML definiton :

switchButton = is present in door and pressplate tile for open the assigned doors
timeOpen = how long the door stay open (in seconds)


      <Column>
          <tileType>door</tileType>
          <state>closed</state>
          <switchButton>8</switchButton>
          <timeOpen>6</timeOpen>
        </Column>


Setup and source code refreshed.



No comments:

Post a Comment