About Store Forum Documentation Contact



Post Reply 
Problem with events in animation
Author Message
tsujan Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
tsujan Offline
Member

Post: #3
RE: Problem with events in animation
Thank you for the reply, and i'll look into it.
09-03-2012 06:05 AM
Find all posts by this user Quote this message in a reply
Post Reply