Here's the texure code:
`load matrix texture
load bitmap "IMAMGE NAME",1
get image 1,X1,Y1,X2,Y2
delete bitmap 1
`create and texture matrix
make matrix 1,200,200,10,10
prepare matrix texture 1,1,1,1
I'm still working on the boundries code.
edit:
I found the perfect code ^_^
if object position X(1)<0 or object position X(1)>200 or object position Z(1)<0 or object position Z(1)>200
move object 1,-0.16
Endif
it checks if the player is out of the matrix range and if so, it moves it back asmuch as it moves it forwards.
Keep in mind that you've moves the martix down so it looks like its being stoped on the z axis whilst stil being on the matrix.
BTW:
change this:
`Waypoint 1
if waypoint#=1
if object collision(1,2)=1
delete object 2
waypoint#=2
endif
endif
`Waypoint 2
if waypoint#=2
if object collision(1,3)=1
delete object 3
waypoint#=3
endif
endif
`Waypoint 3
if waypoint#=3
if object collision(1,4)=1
delete object 4
waypoint#=4
endif
endif
`Waypoint 4
if waypoint#=4
if object collision(1,5)=1
delete object 5
waypoint#=5
endif
endif
`Waypoint 5
if waypoint#=5
if object collision(1,6)=1
waypoint#=6
delete object 6
endif
endif
`Waypoint 6
if waypoint#=6
if object collision(1,7)=1
waypoint#=7
delete object 7
endif
endif
`Waypoint 7
if waypoint#=7
if object collision(1,8)=1
waypoint#=8
delete object 8
endif
endif
`Waypoint 8
if waypoint#=8
if object collision(1,9)=1
waypoint#=9
delete object 9
endif
endif
`Waypoint 9
if waypoint#=9
if object collision(1,10)=1
waypoint#=10
delete object 10
endif
endif
`Waypoint 10
if waypoint#=10
if object collision(1,11)=1
waypoint#=11
delete object 11
endif
endif
`What happens when you win
if waypoint#=11
delete object 1
sleep 4000
end
endif
to this:
if object collision(1,waypoint#+1)=1
color object waypoint#+2,RGB(225,0,0)
delete object waypoint#+1
waypoint#=waypoint#+1
if waypoint#=11
sleep 4000
end
endif
endif
and put this before the main loop and after the checkpoint creation code
color object 2,RGB(225,0,0)
please reply