No matter what I seem to do with these rwo peices of code it never seems to appear on screen. Read a few different threads on it and no more the wise. Getting really annoying now.
sync on:sync rate 60
load image "running e0000.bmp",1
Xpos=320
Ypos=240
sprite 1,Xpos,Ypos,1
sync
do
if upkey()=1 then dec Ypos
if downkey()=1 then inc Ypos
if leftkey()=1 then dec Xpos
if rightkey()=1 then inc Xpos
sprite 1,Xpos,Ypos,1
loop
This code is from one the threads I was loooking at and was said to be working but isn't for me.
REM Project: Arcade Shooter
REM Created: 27/06/2005 12:06:18 PM
REM
REM ***** Main Source File *****
REM
REM Initial game variables
`set the screen refreshing to manual
Sync on
`set the screen refresh speed to go no higher then 60 fps
Sync rate 60
PlayerX=800
PlayerY=400
true=1
set display mode 1024,768,32
set image colorkey 255,255,255
load image "brick007.jpg",1
set sprite 1,1,1
while true
if leftkey()=1 then PlayerX=PlayerX-10
if rightkey()=1 then PlayerX=PlayerX+10
sprite 1,PlayerX,PlayerY,1
endwhile
`refresh the screen
Sync