-
Notifications
You must be signed in to change notification settings - Fork 87
XML\Spawn
The XML element contains the spawn data (animation initialisation).
You need at least one spawn element. This element describe the initial position and direction of your pet. It gives also the next animation that should be executed.
If you create 2 or more spawn elements, the pet could use one of them to enter in the desktop (use probability to increase the probability to use one or another spawn).
Example:
<spawn probability="100" id="1">
<x>screenW+10</x>
<y>areaH-imageH</y>
<next probability="100">1</next>
</spawn>
Is the child of the root of the XML document.
Type: Number
Probability to execute this spawn at beginning. If this is the only spawn element, you can insert whatever you want. Else, try to have a sum of 100 (with all spawn elements), so you can see the probability in %.
Type: Number
Beginning with 1, you can add more spawn elements (each with another ID - incremented by 1).
This ID is not yet used, but in future, after an animation is over without a "defined next animation", one of the ID can be selected as spawn.
Max occurs: 1
Type: String
X-position of the upper/left corner of your image at beginning. Open defined strings for coordinates to see what you can insert.
Max occurs: 1
Type: String
Y-position of the upper/left corner of your image at beginning. Open defined strings for coordinates to see what you can insert.
Max occurs: 1
Type: Number
Next animation ID.