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 / Sprite Animation flipping problem

Author
Message
lucky_shot
12
Years of Service
User Offline
Joined: 7th Jan 2012
Location:
Posted: 9th Jan 2012 04:18
When I press the key that triggers the animation it plays all the frames up to the frames I want played and then starts playing the animation . I tried to fix it with the commented out code but nothing really changed. Can some one point me were the problem is?
-thanks

JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 9th Jan 2012 15:15 Edited at: 9th Jan 2012 15:17
Maybe try a dbSetSpriteFrame() to the first frame of the animation before the call to dbPlaySprite.

I don't use the dbPlaySprite function. I prefer to explicitly set the remark myself so I don't know if it will work or not.


Hope this helps,

JTK

EDIT: remark? Should say frame...
lucky_shot
12
Years of Service
User Offline
Joined: 7th Jan 2012
Location:
Posted: 9th Jan 2012 18:39
Ok this fixes it partially, but it just freezes the animation all together and does not play the two frames I want.

JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 9th Jan 2012 22:39
I know that there's a tutorial/example sprite animation with the Gdk. Have a looksee at that. It's the asteroid one.

JTK

Login to post a reply

Server time is: 2024-11-19 04:16:42
Your offset time is: 2024-11-19 04:16:42