
 
        
       
       
<?xml version="1.0" encoding="utf-8"?>
<Screen name="ActionSequenceTest" descriptors="xworker.libgdx.Screen">
    <Resources>
        <FileResource name="texture" type="texture" file="\data\badlogic.jpg">
            <AssetLoaderParameters>
                <TextureParameter magFilter="Linear" minFilter="Linear"></TextureParameter>
            </AssetLoaderParameters>
        </FileResource>
    </Resources>
    <Stages>
        <Stage name="stage" constructor="default">
            <Image name="img" constructor="texture" texture="texture" width="100" height="100" originX="50" originY="50" positionX="100" positionY="100">
                <Actions>
                    <SequenceAction></SequenceAction>
                </Actions>
            </Image>
            <Image name="img2" _xmeta_id_="img1" constructor="texture" texture="texture" width="100" height="100" originX="50" originY="50" positionX="100" positionY="100">
                <Actions>
                    <ParallelAction>
                        <SequenceAction></SequenceAction>
                        <MoveByAction></MoveByAction>
                        <MoveByAction name="img2MoveBy" amountX="100" amountY="0" duration="1"></MoveByAction>
                    </ParallelAction>
                </Actions>
            </Image>
            <Image name="img3" _xmeta_id_="img2" constructor="texture" texture="texture" width="100" height="100" originX="50" originY="50" positionX="100" positionY="100">
                <Actions>
                    <SequenceAction>
                        <ParallelAction>
                            <MoveByAction amountX="100" amountY="200" duration="2"></MoveByAction>
                        </ParallelAction>
                        <RunnableAction>
                            <actions>
                                <GroovyAction name="doAction" code="println("completed");"></GroovyAction>
                            </actions>
                        </RunnableAction>
                    </SequenceAction>
                </Actions>
            </Image>
        </Stage>
    </Stages>
</Screen>