Ok I fixed it. No media attached or anything like that, you can just plug it in.
`Wall Dodger 1.0
`Created by Chily Dog
`20 Lines
`Start Date: 1/6/2006
`End Date: 1/7/2006
`Randomize
randomize 50
`Set up program
autocam off
Sync On
`make box, groud, and wall
make matrix 1,20,500,2,50; make object box 1,3,1,2; position object 1,12.5,1,260; turn object right 1,90; color object 1,RGB(500,0,0); make object box 2,5,5,2; position object 2,50,2.5,600
`detect collision and color backdrop and position car
set object collision on 1; color backdrop RGB(0,0,0); CarPos#=12.5; hide mouse
end:
cls
CarPos#=12.5; Text 265,15, "Press any key to start. Time: "+str$(Time#); backdrop off
suspend for key
Time#=0; backdrop on
`start main loop
do
`Basic timer function
Inc Time#,1; Text 265,30, "Time: "+str$(Time#)
`keep track of box place and make a ramdom number for box start and restart box if too far away and move box
BoxPos#=Object Position Z(2); BoxStartX#=rnd(20); if BoxPos#<250 then position object 2,BoxStartX#,2.5,320
`control system
if rightkey()=1 then INC CarPos#,0.5
if leftkey()=1 then DEC CarPos#,0.5
`move car and move wall at car
position object 1,CarPos#,1,260; move object 2,-2.5
`kill car if it moves out of bounds
if CarPos#>20 or CarPos#<0 then goto end
`kill car if box hits it
if object hit(1,2) then goto end
`sync
sync
`end main loop
loop
There we go!