the global collision command doesn't work how you think. Instead, I would use set
object collision on OBJECTNUMBER. Then, the objects will still go through each other, so you have to program them to do something when they collide, like
move object OBJECTNUMBER,-1 for more code on this, view my code snippet and search around CodeBase for more help.
rem Make objects
make object sphere 1,10
make object cube 2,10
position object 1,100,0,0
position object 2,0,0,0
rem Loop
do
if upkey()=1 then move object 1,2
if rightkey()=1 then turn object right 1,5
if leftkey()=1 then turn object left 1,5
if object collision(1,2)=1 then move object 1,-2
loop
You don't necessarily have to use the
set object collision on command, you just need the
if object collision(OBJECT1,OBJECT2)=1 command. It helps to have the
set object collision on command, but I hardly use it.
-------------------
Vote for
Excelsis on the puzzle game compo
__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk