Difference between revisions of "AMOSi:Spritebob Col"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
(Extracted from the AMOSPro V2.00 helpfile)
(No difference)

Revision as of 02:45, 17 November 2007

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


Checks a single SPRITE for collisions between several bobs. The source sprite MUST have been assigned a mask with the MAKE MASK option before use.


If the test is successful, you'll get a result of -1. You can now find the other objects in the collision with a call to the COL function.


c=Sprite Bob Col(spritenumber)

There's also an extended version of this function.


c=Sprite Bob Col(spritenumber,first To last)

Tests for collisions between the source object and bobs from first to last. (See COL,MAKE MASK)