DREAMOTION3D
Code : Tout sélectionner
DM_PointEntity(*sphere,*tiny)
DM_EntityDistance.f(*tiny, *sphere)
If DM_EntityZ(*tiny)=> DM_EntityZ(*sphere)-50
DM_MoveEntity(*sphere,0,0,0)
ElseIf DM_EntityZ(*tiny)=> DM_EntityZ(*sphere)-150
DM_MoveEntity(*sphere,0,0,2)
EndIf
If DM_EntityZ(*tiny)=> DM_EntityZ(*sphere)+150
DM_MoveEntity(*sphere,0,0,0)
ElseIf DM_EntityZ(*tiny)=> DM_EntityZ(*sphere)+50
DM_MoveEntity(*sphere,0,0,2)
EndIf
If DM_EntityX(*tiny)=> DM_EntityX(*sphere)-50
DM_MoveEntity(*sphere,0,0,0)
ElseIf DM_EntityX(*tiny)=> DM_EntityX(*sphere)-150
DM_MoveEntity(*sphere,0,0,2)
EndIf
If DM_EntityX(*tiny)=> DM_EntityX(*sphere)+150
DM_MoveEntity(*sphere,0,0,0)
ElseIf DM_EntityX(*tiny)=> DM_EntityX(*sphere)+50
DM_MoveEntity(*sphere,0,0,2)
EndIf
Code : Tout sélectionner
iPointNode(*dwarf, *ninja)
If iNodeZ(*ninja)=> iNodeZ(*dwarf)-50
iMoveNode(*dwarf,0,0,0)
ElseIf iNodeX(*ninja)=> iNodeX(*dwarf)-150
iMoveNode(*dwarf,0,0,0.1)
EndIf
If iNodeZ(*ninja)=> iNodeZ(*dwarf)+150
iMoveNode(*dwarf,0,0,0)
ElseIf iNodeZ(*ninja)=> iNodeZ(*dwarf)+50
iMoveNode(*dwarf,0,0,0.1)
EndIf
If iNodeX(*ninja)=> iNodeX(*dwarf)-50
iMoveNode(*dwarf,0,0,0.1)
ElseIf iNodeX(*ninja)=> iNodeX(*dwarf)-150
iMoveNode(*dwarf,0,0,0)
EndIf
If iNodeX(*ninja)=> iNodeX(*dwarf)+150
iMoveNode(*dwarf,0,0,0)
ElseIf iNodeX(*ninja)=> iNodeX(*dwarf)+50
iMoveNode(*dwarf,0,0,0.1)
EndIf