Hi.
I wrote a code for move object to right but when I Press Right key, my object don't move to right and move to another direction. I want my object move to x direction.
this is my code:
sync on : sync rate 0 : hide mouse:cls 0
COLOR BACKDROP rgb(128,128,128)
load Image "media\tex.jpg",1
load Object "media\obj.dbo",1
Texture object 1,1
YRotate object 1,80
Position Object 1,-1,-1,0
do
if RightKey() = 1
loop object 1,005,035
Set object Speed 1,5
Move Object Right 1,0.0001
else
loop object 1,1330,1830
Set object Speed 1,5
endif
sync
loop
Please guide Me.
Thanks.