tsujan
Member
|
Problem with events in animation
Hi I'm new to esenthel and I'm having this problem with events in animation.
I have an animation and in it, there are two events hit and ground, and when they are called in the program using the eventOccured function
if(P->generalMotion.eventOccured("hit"))
{
\*
*/
}
if(P->generalMotion.eventOccured("ground"))
{
\*
*/
}
but for some reason the "hit" get triggered sometimes only and the "ground" event doesn't get triggered at all. I have used events in some other animations using the same function, and they work fine. but for this animation, i'm having these problems.
|
|
08-31-2012 09:41 AM |
|
Esenthel
Administrator
|
RE: Problem with events in animation
maybe you're calling motion.update more than once per frame? or testing eventOccured not in every frame?
|
|
09-01-2012 01:43 PM |
|
tsujan
Member
|
RE: Problem with events in animation
Thank you for the reply, and i'll look into it.
|
|
09-03-2012 06:05 AM |
|