Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:vrgrid:actions [2019/05/04 15:43]
ptsource
software:vrgrid:actions [2019/08/20 12:35] (current)
Line 12: Line 12:
  
 <sxh xml;> <sxh xml;>
-<​create ​symbol="​11" ​block="​basic:​full">​ +<​create ​unit="​11" ​vrobj="​basic:​full">​ 
-<part name="​*"​ texture="​images/​sad.gif"​ />+<side name="​*"​ texture="​images/​sad.gif"​ />
 <action trigger="​roll on" > <action trigger="​roll on" >
 <replace source="​22"​ /> <replace source="​22"​ />
 </​action>​ </​action>​
 </​create>​ </​create>​
-<​create ​symbol="​22" ​block="​basic:​full">​ +<​create ​unit="​22" ​vrobj="​basic:​full">​ 
-<part name="​*"​ texture="​images/​happy.gif"​ />+<side name="​*"​ texture="​images/​happy.gif"​ />
 </​create>​ </​create>​
 </​sxh>​ </​sxh>​
  
-Here we have created a full 3d object, which has the image "​sad.gif"​ on all its parts, and assigned it the symbol ​"​11"​. Whenever a user rolls her mouse over this 3d object, the 3d object will be replaced with the "​22"​ 3d object, which is also a full 3d object but which has the image "​happy.gif"​ on all its parts.+Here we have created a full 3d object, which has the image "​sad.gif"​ on all its parts, and assigned it the unit "​11"​. Whenever a user rolls her mouse over this 3d object, the 3d object will be replaced with the "​22"​ 3d object, which is also a full 3d object but which has the image "​happy.gif"​ on all its parts.
 Note that there is no other action on the "​22"​ 3d object, so once this action has been triggered once, there is no more functionality. When the player rolls off the 3d object, it will still appear to be happy. Note that there is no other action on the "​22"​ 3d object, so once this action has been triggered once, there is no more functionality. When the player rolls off the 3d object, it will still appear to be happy.
-But we can also add an <​action>​ tag to block "​22"​ which will switch back to block "​11":​+But we can also add an <​action>​ tag to vrobj "​22"​ which will switch back to vrobj "​11":​
  
 <sxh xml;> <sxh xml;>
-<​create ​symbol="​22" ​block="​basic:​full">​ +<​create ​unit="​22" ​vrobj="​basic:​full">​ 
-<part name="​*"​ texture="​images/​happy.gif"​ />+<side name="​*"​ texture="​images/​happy.gif"​ />
 <action trigger="​roll off" /> <action trigger="​roll off" />
 <replace source="​11"​ /> <replace source="​11"​ />
Line 40: Line 40:
 Now lets look at the complete syntax for action tags: Now lets look at the complete syntax for action tags:
 <sxh xml;> <sxh xml;>
-<action location="​(column,​row,​level)" trigger="​roll on|+<action location="​(column,​row,​layer)" trigger="​roll on|
 roll off|click on|step in|step out|proximity|timer|location"​ roll off|click on|step in|step out|proximity|timer|location"​
 radius="​number-of-units"​ delay="​min..max"​ /> radius="​number-of-units"​ delay="​min..max"​ />
Line 104: Line 104:
 | HTTPPOST | | HTTPPOST |
 | HTTPGET | | HTTPGET |
 +| ANIMATE |
 +| SETFRAME |