Collisions are fairly straight forward. You check to see if there is any active collisions on the stack with
phy get collision data() <> 0
then you need to check both objects for collision
a =PHY GET COLLISION OBJECT A ()
b =PHY GET COLLISION OBJECT B ()
at this point you make whatever decision is appropriate to you application
I have included part of a routine I use
while phy get collision data() <> 0
a =PHY GET COLLISION OBJECT A ()
b =PHY GET COLLISION OBJECT B ()
if a <> Alien and b <> Alien
if a = CC and b <> 1 and b < Bullet1
push(b)
endif
if a <> 1 and b = cc and b < Bullet1
push(a)
endif
endif
endwhile
Hope this was helpful
Codger
System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem