this is my first game i'm making and i have it so that when you press right arrow a picture moves to the right.
but when I press the right arrow it just dissaperes
my code is:
Graphics 800,600
SetBuffer BackBuffer()
Global char=LoadImage ("char.png")
Global charx,chary
charx=0
chary=568
While Not KeyHit(1)
Cls
DrawImage char, charx,chary
While KeyDown(205)
charx=charx +1
Wend
Flip
Wend
but when I press the right arrow it just dissaperes
my code is:
Graphics 800,600
SetBuffer BackBuffer()
Global char=LoadImage ("char.png")
Global charx,chary
charx=0
chary=568
While Not KeyHit(1)
Cls
DrawImage char, charx,chary
While KeyDown(205)
charx=charx +1
Wend
Flip
Wend