are you using a file that comes with dark basic or not...and are you using dark basic classic or pro.
But basically by the looks of it yeah. But it would help if you could specify what your trying to do. ex fps,rpg,etc.
Also for
if leftkey()=1 then aY# = wrapvalue(aY#+10)
`if the rightkey is pressed, update aY# minus ten
if rightkey()=1 then aY# = wrapvalue(aY#-10)
`if downkey is pressed, update aX# plus ten
if downkey()=1 then aX# = wrapvalue(aX#+10)
it might be easier if you used
if leftkey()=1 then turn object left 1,.7
or something like that if that is what you are trying to do
some mornings, it just doesn't pay to gnaw through those leather straps