Search Tutorials
How AgileVR Works (con't) My second frame code is: Begin Tell Target ("../")
Set Variable: "cur_x1" = GetProperty("/movie1", _x)
Set Variable: "cur_x2" = GetProperty("/movie2", _x)
If (cur_x1 <-3700)
Set Property ("movie1", X Position) = cur_x2 + 3557
End If
If (cur_x2 <-3700)
Set Property ("movie2", X Position) = cur_x1 + 3557
End If
If (cur_x1> 3700)
Set Property ("movie1", X Position) = cur_x2 - 3557
End If
If (cur_x2> 3700)
Set Property ("movie2", X Position) = cur_x1 - 3557
End If
End Tell Target
You'll have to replace each occurrence of the number 3557 with the width of your own image. Finally, the code for my detection button is: On (Press)
Begin Tell Target ("../")
Set Variable: "start_x" = GetProperty("/hidden", _x)
End Tell Target
Begin Tell Target ("../update")
Go to and Play (2)
End Tell Target
End On
On (Release, Release Outside)
Begin Tell Target ("../update")
Go to and Stop (1)
End Tell Target
End On
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|