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 / Trying to move

Author
Message
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 3rd Jul 2008 12:14
I have successfully moved the sprite according to the key press. The problem is if the sprite is facing up, when you go left it cycles through the other frames before it faces left. The same goes with facing down and going right. Any fix for this? Or should I resort to using different image files of the same van?
link to van.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 3rd Jul 2008 17:00
What happens if you specifically set the frame before you issue the play directive?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 3rd Jul 2008 22:58
Do you mean switching dbSprite() method and dbPlaySprite()? If so, It does the same thing.

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 3rd Jul 2008 23:04
Quote: "Do you mean switching dbSprite() method and dbPlaySprite()? If so, It does the same thing."


I meant dbSetSpriteFrame(iSprite, iFrame).

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
hardcore jc
16
Years of Service
User Offline
Joined: 3rd Jul 2008
Location:
Posted: 4th Jul 2008 00:36
Oh Wow. That works perfectly. Thank you!

What I dont understand though is why? I was already playing it from the right frames using dbPlaySprite() wasnt I?
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 4th Jul 2008 00:38
Quote: "What I dont understand though is why? I was already playing it from the right frames using dbPlaySprite() wasnt I?
"


Maybe the play command requires that a full cycle completes before taking any new sequence.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-09-30 01:34:02
Your offset time is: 2024-09-30 01:34:02