I have a very Strange Collision Problem,It goes like this.
`Collision
IF OBJECT HIT(1,3)
Lives = Lives - 1
WAIT 250
POSITION OBJECT 1,Objx,Objy,Objz
ENDIF
IF OBJECT HIT(1,4)
Lives = Lives - 1
WAIT 250
POSITION OBJECT 1,Objx,Objy,Objz
ENDIF
IF OBJECT HIT(1,5)
Lives = Lives - 1
WAIT 250
POSITION OBJECT 1,Objx,Objy,Objz
ENDIF
IF OBJECT HIT(1,6)
Lives = Lives - 1
WAIT 250
POSITION OBJECT 1,Objx,Objy,Objz
ENDIF
`Lives
IF Lives <= 0
Text 300,500, "GAME OVER"
Wait 1000
End
ENDIF
Object 1 is the player, a sphere (at the moment) and objects 3,4,5 and 6 are the walls. for some reason the variable "Lives" only decreces when object 1 collides with object 3, the right wall. it goes straight through all the other walls. I have also tried using the OBJECT COLLISION() Command but that didn't work.
Please don't Flame me about not searching, because i did search and read most of the things that came up.
I hope you guys can help,
Thanks in advance,
Axelman.
*EDIT*
By the way, this peice of code goes in the main loop.
*EDIT*
CURRENT PROJECT: Enemy At The Gates