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.

Author
Message
hurrytome
23
Years of Service
User Offline
Joined: 8th Apr 2003
Location:
Posted: 8th Apr 2003 22:56
[b] :-s Hi !
How can I press a key and a move a picture along the screen ?
The Darthster
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 8th Apr 2003 23:16
Quite easily! You need to load your image using LOAD IMAGE, and then set it as a sprite on the screen, using the SPRITE command. Use variables as the x and y positions, and change these when you press keys. For example:



Once I was but the learner,
now, I am the Master.
Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 11th Apr 2003 17:34
i'm guessing you're new to darkbasic

Login to post a reply

Server time is: 2026-06-11 19:30:15
Your offset time is: 2026-06-11 19:30:15