Difference between revisions of "AMOSi:Col"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 17 November 2007

an example can be found on AMOSPro_Tutorial:Tutorials/Collision_Detection.AMOS


Checks for the other objects involved in a collision you've just detected using one of the BOB COL,SPRITE COL, BOBSPRITE COL and SPRITEBOB COL functions.


target is the number of the object you wish to test. If it's collided with your source object, you'll get a value of -1, otherwise 0 will be returned.


c=Col(target)

If you enter a target of -1, AMOS will return the number of the FIRST object which has collided with your source object.