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 / Moving image several times

Author
Message
Regen eratez
17
Years of Service
User Offline
Joined: 8th May 2007
Location:
Posted: 14th Jun 2009 03:30
Hello, I am trying to get my image to move +10 across as the upkey is moved, the only problem is it only moves once....




But I want it to move as the upkey is being pressed, what would I need to do?

Thanks in advance
Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 14th Jun 2009 08:25


You might ask what you were doing wrong before you were saying to the computer 40+10 which is 50 so the image only moves to the position 50. Now your telling the computer, "The current number equals the old number plus ten," which is 50 then 60 and so on. Sorry if I didn't explain it too well.

Wally Wombat
17
Years of Service
User Offline
Joined: 7th Jul 2007
Location:
Posted: 15th Jun 2009 00:35
Edd is correct with the above and the code will work. As Edd says you are pasting the image to the same position each time the upkey is pressed. By incrementing the x coordinator by 10 will paste image at the new coordinator. You could also use INC x,10 in place of x=x+10.

1 rem Scrabble variable table C16
2 sys 32655

Login to post a reply

Server time is: 2024-09-28 08:26:27
Your offset time is: 2024-09-28 08:26:27