Jon We & Allcreator007
Take a look how the command works...as Brendy boy comented
autocam off
sync on
sync rate 60
`floor
make object box 100,50,0,50
color object 100,rgb(0,100,0)
`door
make object box 1,7,10,1
color object 1,rgb(70,10,0)
position object 1,0,5,0
`player
make object sphere 2,3
color object 2,rgb(255,255,0)
position object 2,0,1.5,-10
position camera -30,10,-30
point camera 0,0,0
do
`condition to move player
if upkey() and object collision(2,1)=0 then move object 2,0.1
if downkey() and object collision(2,1)=0 then move object 2,-0.1
`condition to open the door
if object collision(1,2)>0 then move object up 1,0.1 else move object down 1,0.1
`force the door not going down the floor
if object position y(1)<5 then position object 1,0,5,0
if object collision(1,2)>0 then set cursor 300,200:print "Ball hiting "
sync
loop
Cheers.
I'm not a grumpy grandpa
