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
| » Level Intermediate |
|
Added: 2000-03-16 Rating: 7 Votes: 239 |
| » Author |
| No Information Given |
| » Download |
| Download the files used in this tutorial. |
| Download (547 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!