I wanted to make a car racing game. So, i downloaded a tutoial. I tried making something and it doesn't work. Can someone please help me with this code! Tnx. Heres the code:
`MainCode------------------------------------------------------------------------------
Make Light 1
Position Light 1,30,6,30
Make Camera 1
Position Camera 1,30,2,26
Make Object Cube 1,0.6
Position object 1,30,0,80
Scale Object 1,200,50,200
` Stats
Speed#=0
MaxSpeed#=10
ExcellSpeed#=1
DecrSpeed#=1
Turn#=1
`Screen Stats
`LOAD LEVELS ---------------------------------------------------------------------------------
Make Matrix 1,60,60,60,60
Position Matrix 1,30,0,30
`Collisions ----------------------------------------------------------------------------
Automatic Object COllision 1,1,1
Do
`Movement Varibles
x#=Object Position x(1)
y#=Object Position y(1)
z#=Object Position z(1)
AngleX#=Object angle X(1)
Set Camera to follow 1,x#,y#,z#,AngleX#,3,2,50,1
Point Camera 1,x#,y#,z#
`Movement Actions
If UpKey()=1 and Speed# < MaxSpeed# then INC Speed#,ExcellSpeed#
If UpKey()=0 and speed# > 0 then DEC speed#,DecrSpeed#
If RightKey()=1 then turn object right 1,Turn#
If LeftKey()=1 then turn object left 1,Turn#
If Speed# < 0 then Speed#=0
Move Object 1,Speed#
Loop
The speed is ALL messed up!