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.

AppGameKit Classic Chat / [BUG] SetObjectAnimationFrame

Author
Message
Xaby
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 19th Sep 2016 15:54
Maybe I am using the command in a wrong way.?

After some frames the program freezes.
Does the command does not work on Instances? Or does I something wrong?
Testing it with Tweentime: 0 or 0.01, causes the program to freeze sooner.

I wanted to test, if an Instance with Animation set to a specific frame will be faster than playing an animation completly.
The character is from the MP_12 (FPSC)

Anim$=GetObjectAnimationName(obj,1)
SetObjectAnimationFrame(obx[i],Anim$,1,1)




----------------- complete program -----

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 30th Sep 2016 17:32
Thanks, fixed for the next version. It was caused by the instances being created whilst the original object was playing. The instances thought they were also playing but didn't have all the correct values set, in the next version they will correctly be created in the stopped state.

You can work around this by creating the instances before starting the animation on the original object.

Login to post a reply

Server time is: 2024-09-29 19:15:05
Your offset time is: 2024-09-29 19:15:05