vsTASKER 7 Tutorial
×
Menu
Index

My Own Federation

  
With vsTASKER, it is also possible to define a Federation from scratch and use it quite immediately without too much coding.
The OMT builder and the code generation mechanism will simplify a lot the process.
 
Let's say for the sake of this example that we want to create one Federation that will contain one Object myEntity and one Interaction myCreate.
The Object myEntity will contain two Attributes: X and Y, both integers.
The Interaction myCreate will contain two Parameters: posX and posY, both floats.
 
myEntity will be used to update the position of any runtime created entity in either vsTASKER (blue or red).
Whenever the user will create a new Entity in one vsTASKER map, it will appear automatically in the other one.
 
myCreate will be used to react at the mouse click on the map during runtime.
The mouse position (converted into the terrain coordinates) will be sent to other vsTASKER.
A red circle will be displayed at the position for 3 seconds.
 
Now, we need to create the blue Database.
Let's select the Basic template for all.