You can to something like
make object box 1,3,3,3
position the object
position object 1,5,0,0
make object box 2,1,1,1
for character and a wall and do some movement for the character if the box don't have collision
if object collision(2,1)=0
the object collision command will return a value and the number in the () is the object num, object num.
if upkey()=1 then move object 2,1 etc
endif
now for if the collision = 1
if object collision (2,1)=1
the object collision command will return a value and the number in the () is the object num, object num.
now in the if statement you should put something like that
if upkey()=1 then move object 2,0
if downkey()=1 then move object 2,-1
if leftkey()=1 then turn object left 2,3
if rightkey()=1 then turn object right 2,3
endif
here the complete code:
make object box 1,3,3,3 : position object 1,5,0,0
make object box 2,1,1,1
if object collision(2,1)=0
if upkey()=1 then move object 2,1
if downkey()=1 then move object 2,-1
if leftkey()=1 then turn object left 2,3
if rightkey()=1 then turn object right 2,3
endif
if object collision(2,1)=1
if upkey()=1 then move object 2,1
if downkey()=1 then move object 2,-1
if leftkey()=1 then turn object left 2,3
if rightkey()=1 then turn object right 2,3
endif
Hope it help
Windows XP,pentium IIII, 1,9 MGZ, 256 mb memory, 128 mb video card ATI Radeon 9200 se s80