Thanks Ianm for your quick reply
My code is
load image "c:\media_dbasic\platform.jpg",1
load image "c:\media_dbasic\cowboy1_right.bmp",2
load image "c:\media_dbasic\trees.bmp",6
load image "c:\media_dbasic\rocky.bmp",7
sprite 1,0,450,1
sprite 2,0,410,2
do
r_key = rightkey()
if r_key = 1
x_mov2 = x_mov2 + 1
set sprite image 2,2
sprite 2,x_mov2,410,2
endif
l_key = leftkey()
if l_key = 1
x_mov2 = x_mov2 - 1
sprite 2,x_mov2,410,2
set sprite image 2,4
endif
u_key = upkey()
if u_key = 1
sprite 2,x_mov2,380,2
wait 50
sprite 2,x_mov2,410,2
endif
loop
Before I said the shift key,Now I tried the upkey and the effect of flickering is still the same.
I think when you change the y-cordinates the image does not stay there?
May you please tell me how you animate your characters?