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.

Dark GDK / Object animation delay

Author
Message
CallumD
13
Years of Service
User Offline
Joined: 30th Mar 2011
Location: United Kingdom
Posted: 3rd Apr 2011 03:12
I'm trying to loop a walking animation when the player presses the W key. It all works fine, except one problem; when the loop is reset to the 'iStart' (starting frame), there is a fraction of a second where the object is not doing anything, and is just stood still. How can I remove this?
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 3rd Apr 2011 04:20
It may be in the object's animation, but if you post the code that is animating the object, I am sure I could fix it.
CallumD
13
Years of Service
User Offline
Joined: 30th Mar 2011
Location: United Kingdom
Posted: 3rd Apr 2011 04:23
It's just;

dbLoopObject(1,220,259);

But if I try making it more inclusive, it still doesn't help. I presume it's a problem with looping it? Or is it just the animation?
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 5th Apr 2011 15:30
I use object animation all the time. I have not seen any issue with looping.... There is, however, a problem with dbPlayObject(), but that's not what you are talking about. It may be in your other code. Please post the section that pertains to the object motion; to include the input and the dbLoopObject(). There must be something you are doing wrong or not doing at all. I will try my best to help.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-06-16 00:59:27
Your offset time is: 2024-06-16 00:59:27