Difference between revisions of "AMOSi:Spritebob Col"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) 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 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)