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.

2D All the way! / I Need Help With Sprites (DarkGDK )

Years of Service
User Offline
Joined: 12th Sep 2009
Posted: 12th Sep 2009 19:57 Edited at: 13th Sep 2009 04:22
Hello I'm new to this. I am using the DarkGDK to attempt to make a zelda clone. I have a code to make a sprite move but whenever i switch directions a sprite is left behind. Can anyone provide another to move my sprite or tell me what is causing the problem. Sorry if this isn't the right spot for this.

My code is:

Here is the picture in game:

feiting shadow
Years of Service
User Offline
Joined: 12th Sep 2006
Posted: 14th Sep 2009 10:23
enum DIRECTION {UP, LEFT, DOWN, RIGHT}; instead of int up, left, down, right = 0 may allow efficiency.

Your problem's probably in your rendering function... and the GDK forums are more appropriate for this, since it's not art-related probably.


Login to post a reply

Server time is: 2023-01-31 13:33:02
Your offset time is: 2023-01-31 13:33:02