Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Determining end of 3d animation?

Author
Message
hoyoyo80
8
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 14th Jun 2016 22:17
Hi all,

I want to ask a simple question, how to determine the animation is done playing(non looping) animation. Since i want an animation uninterruptible until it finish playing. Do guide me please?

Thanks
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 15th Jun 2016 03:18
This will help:
https://www.appgamekit.com/documentation/Reference/3D/GetObjectAnimationTime.htm

It will get a little tricky and you have to check the other time commands for animations aswell, but in theory you want:

If CurrentObjectAnimationTime => TotalObjectAnimationTime then do stuff

Greetings, Jack

[/url]
hoyoyo80
8
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 15th Jun 2016 08:20
Thanks for ur reply...im still blur about this. Should i include timer to compare both animation time? (i hope agk can detect end animation by frame)
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 15th Jun 2016 13:23
Hi

You can check if the animation has finish playing by using:

if GetObjectIsAnimating( objectid ) = 0
// animation has stopped.
endif
best regards Preben Eriksen,
hoyoyo80
8
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 15th Jun 2016 22:03
yes! thats it! i miss to read that command and now it is all sort out

Login to post a reply

Server time is: 2024-11-22 03:23:04
Your offset time is: 2024-11-22 03:23:04