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.

Newcomers DBPro Corner / having problems turning sprite using keybord

Author
Message
Hatebreed
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 30th Oct 2007 20:53
Ok this is a little hard to explain but I guess I will try

I am having a problem with my sprite (pacman) turning the correct way depending on the key I press...

I can get it to turn and in the direction I want it to but when I press downkey the sprite rotates all the way round and runs through all the animations before going the correct way.

I will attach my sprite image and my code to see if anyone can figure it out. I think it has to do with my play sprite numbers.

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 31st Oct 2007 01:56
You only have posted .jpg pics for viewing or downloading. Put the code in a snippet box (click the 'code' button, paste your code and then click the 'code' button again). We especially need to see the part with your key presses and sprite commands.

LB

Login to post a reply

Server time is: 2024-11-25 12:38:43
Your offset time is: 2024-11-25 12:38:43