Difference between revisions of "Operator Element"

Jump to navigation Jump to search
133 bytes removed ,  18:17, 8 April 2010
m
imported>JRoush
imported>JRoush
Line 5: Line 5:
If the operator contains a literal number or string, that is used as the second operand.  For example:
If the operator contains a literal number or string, that is used as the second operand.  For example:
  <image>
  <image>
   <x>               &lt;!-- Move image 1 pixel to the right every frame --&gt;
   <x>      
     <add> 1 </add>  &lt;!-- (Add 1 to current x position) --&gt;
     <add> 1 </add>  &lt;!-- Add 1 to current x position --&gt;
   </x>
   </x>
  </image>
  </image>
However, Operators can instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''.  For example:
However, Operators can instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''.  For example:
  <image name="example_image>
  <image name="example_image>
   <y> 5 </y>       &lt;!-- Move image 5 pixels to the right every frame --&gt;
   <y> 5 </y>
   <x>  &lt;!--Add the value of the y coordinate (5) to the current x position --&gt;
   <x>  &lt;!--Add the value of the y coordinate (5) to the current x position --&gt;
     <add src="example_image" trait="y"/>  
     <add src="example_image" trait="y"/>  
Anonymous user

Navigation menu