Quote: "I tried those and could not make anything work."
I'll show you but it won't involve loading an image. Run this as it is and it'll create an image and grab it for use for this code. You can modify it by erasing the lines from the first INK statement to GET IMAGE and putting LOAD IMAGE in it's place.
` Set the starting resolution
set display mode 640,480,16
` Turn on sync and set it to go as fast as the computer can handle it
sync on
sync rate 0
` Create an image
ink rgb(0,100,0),0
box 0,0,50,50
ink rgb(255,255,255),0
center text 25,10,"Sprite"
center text 25,30,"#1"
` Grab the image
get image 1,0,0,50,50,1
` Clear the screen
cls
` Set the starting x and y coordinates
x=100:y=100
` DO this LOOP forever (no EXIT command)
do
` Show the sprite (spritenumber, x coordinate, y coordinate, image number)
sprite 1,x,y,1
` Check for the up arrow
if upkey()
` Decrease the y coordinate
dec y
` Check if the y coordinate goes beyond the screen (and reset to 0 if it does)
if y<0 then y=0
endif
` Check for the down arrow
if downkey()
` Increase the y coordinate
inc y
` Check if the y coordinate goes beyond the screen (and reset to 430 if it does)
if y>430 then y=430
endif
` Check for the left arrow
if leftkey()
` Decrease the x coordinate
dec x
` Check if the x coordinate goes beyond the screen (and reset to 0 if it does)
if x<0 then x=0
endif
` Check for the right arrow
if rightkey()
` Increase the x coordinate
inc x
` Check if the x coordinate goes beyond the screen (and reset to 590 if it does)
if x>590 then x=590
endif
` Refresh the screen
sync
loop
[/quote]Also tried to buy Dark Game Studio and found I could not get it shipped to me here in the Philippines.
Day is not going very well for me now. [quote]
I hope you can solve that problem because you've made a wise choice wanting to get Darkbasic Pro. You could always get just Darkbasic Pro and download it... no shipping needed. You don't really need to get Classic if you get Pro and Dark GDK uses C++ style code (nothing like Classic or Pro). The other stuff you won't be using till you learn Darkbasic more.