Login Form



Who's Online

We have 31 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.33
Time : 16:25
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 162628

 
Container gives object in mouse (+ text) PDF Print E-mail
Written by Mithrandir   
Wednesday, 10 February 2010 13:42
STATE_MACHINE
{
KEY { container1mouseText }

COMMENT [This container gives 1 object when we click on it.
Object given in mouse. Name and Additional text added. ]

PARAM 

KEY  {1}
TYPE  {frame}
COMMENT [3D object: initial close]
DISPLAY {}
}

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: final open]
}

PARAM 

KEY  {3}
TYPE  {object}
COMMENT [Received object:]
OUT {}
}

PARAM 

KEY  {4}
TYPE  {sound}
COMMENT [Sound to play when objet is given:]
}

PARAM
{
KEY { 5 }
TYPE {TEXT}
COMMENT [Name of the Machine:]
}

PARAM
{
KEY { 6 }
TYPE {TEXT}
COMMENT [Text display when we click on it after receiving Obj:]
}

PARAM
{
KEY {7}
TYPE {OBJECT}
COMMENT [Virtual Object to send: ]
OUT {}
}

CODE
[
TRAP
{
KEY { %0 }
NAME { %5 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
OBJECTMOUSE { %3 }
OBJECT { %7 }
SOUND { %4 }
}
JUMP {static}
}

STATE
{
KEY { static }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { display }
}
}
}
STATE
{
KEY { display }
SETCOLLID { 1 }
FRAME { %1 }
TEXT { %6 }
MULTI
{
CONDITION
{
TIMER { 100 } 
GOTO { static }
}
}
}
STATE
{
KEY { fin }
}
}
]
}