I am using AE4 to move some objects with aeMoveTo (works well!!). I am moving multiple objects simultaneously (works well too!!). Now I want to check for object collisions. I believe I should use the aeExitFrame callback to do my collision checking, but I am unclear how to determine which moving object this callback refers to. The AE4 documentation says there is a parameter passed with the callback that identifies the calling handler. That sounds like C/C++ talk (I am just a poor VB guy). Can someone provide some detail (or script) of what this "parameter" is, and how it relates back to the moving object, please?
Dan
AE4 aeMoveTo Callbacks
Moderators: heatherlaine, kevinmiller, robinmiller, malte
Re: AE4 aeMoveTo Callbacks
Hey Dan,
if you write an aeExitframe script, put it in your card script.
on aeExitFrame pWhichMethodSentIt
here pWhichMethodSentIt will give you what has caused aeExitFrame to be triggered. In your case you will want to check if it really was aeMoveTo or another ae thing that caused aeExitFrame to be sent (almost every ae thing sends aeExitFrame)
Now if you want to check who received aeExitFrame on card level, you are interested in the target
on aeExitFrame
put the long ID of the target into tWhoGotTheMessage
You can now continue your collision check for all the objects you are interested in.
Hope that helps a little,
malte
if you write an aeExitframe script, put it in your card script.
on aeExitFrame pWhichMethodSentIt
here pWhichMethodSentIt will give you what has caused aeExitFrame to be triggered. In your case you will want to check if it really was aeMoveTo or another ae thing that caused aeExitFrame to be sent (almost every ae thing sends aeExitFrame)
Now if you want to check who received aeExitFrame on card level, you are interested in the target
on aeExitFrame
put the long ID of the target into tWhoGotTheMessage
You can now continue your collision check for all the objects you are interested in.
Hope that helps a little,
malte
Re: AE4 aeMoveTo Callbacks
That helped a lot, Malte. Thank you... again. AE is great.