Hi,
THe basic items to keep in mine when working in 2D is that there are two axes to work with. The X axis goes horizontal and Y goes vertical. The default resolution for DB programs is 640 by 480, so there are 640 pixels on the X axis and 480 on the Y axis. Pixel 0 of the X quadrant starts at the left of the screen, and pixel 0 of the Y quadrant starts at the top of the screen. Just thought I'd mention that before showing you how to move the sprite

.
Here's some simple code that will move a 2D object left, right, up, and down with the corresponding keys. I've also added checks to ensure the object can't go outside of the screen. Instead of using actual values such as 640 and 480, you can also get the current screen width and height by using the
screen width() and
screen height() commands accordingly.
`Initialization
Sync on
Sync Rate 90
Hide Mouse
`Make Simple Image for Sprite
Box 0,0,25,25
Get Image 1,0,0,25,25
cls
`Variables
X# = 320 : `centered on X axis
Y# = 240 : `centered on Y axis
Step# = 5 : `How many pixels the object will move each cycle
`Make Sprite
Sprite 1,x#,y#,1 : `Position sprite at coordinates stated
`Main Loop
Do
`Control Sprite movement
If leftkey()=1 and x# > 0 then x# = x# - step#
If rightkey()=1 and x# < 640-sprite width(1) then x# = x# + step#
if upkey()=1 and y# > 0 then y# = y# - step#
if downkey()=1 and y# < 480-sprite height(1) then y# = y# + step#
Sprite 1,x#,y#,1 : `Reposition Sprite
Sync
Loop
Hope this helps. Good luck!