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 / how do i move my sprite up, down, left, right??

Author
Message
TheCodeHasEyes
13
Years of Service
User Offline
Joined: 21st Oct 2010
Location:
Posted: 23rd Oct 2010 16:44
hi, i did a forum search on this but im still abit unsure of how to go about this very simple coding.

how do i move my sprite up down left right?



thats my code but it wont work.

any ideas how to make my sprite/image move around when i press a key?

thanks.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Oct 2010 23:11
So many things wrong here:
- the DO command should be matched with a LOOP command, and all of the code you want to repeatedly run should be within the loop.
- there are no sprites in your program.
- error in your LOAD IMAGE command
- you aren't instructing DBPro when it's OK to draw, even though you've told it you'll take care of that (with the SYNC ON command).

Here's your code corrected as far as the original code goes:


Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Oct 2010 06:00
Quote: "thats my code but it wont work. "


You really should go though TDKs Tutorials before you try anything else on your own.

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

Login to post a reply

Server time is: 2024-09-28 22:33:48
Your offset time is: 2024-09-28 22:33:48