ok now I am mad
this code does not work properly I am trying to make a ifeld for the ball and when it is in the field the object is suposed to be hidden here is the whole code
rem setup
sync on
sync rate 36
hide mouse
rem placing the camera
make camera 1
position camera 1,0,0,0
color backdrop 1,RGB(0,0,0)
rem make the player
make object box 1,10,1,1
color object 1,RGB(255,255,0)
position object 1,0,-25,50
rem make ball
makeball()
rem make level
makelevel1()
makelevel2()
rem make the player move
mainloop()
function mainloop()
do
if leftkey()=1 and object position x(1)>-30
move object left 1,1.5
if xvelocity#=0 then move object left 2,1.5
endif
if rightkey()=1 and object position x(1)35 then xvelocity#=0-xvelocity#
if object position y(2)>28 or object collision (1,2) then yvelocity#=0-yvelocity#
rem killing the boxes
if object position x(2)=2 and object position y(2)=1
hide object 3
endif
rem death
if object position y(2)=2 and object position y(2)=1
hide object 3
endif
hope someone can help me
You never fail, only make mistakes.