Difference between revisions of "Shape:getMask"

m (included link to other languages)
Line 19: Line 19:
 
* [[Shape:setMask]]
 
* [[Shape:setMask]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets which categories this shape should '''NOT''' collide with.
+
{{#set:Description=Gets which categories this shape should '''NOT''' collide with.}}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Shape:getMask}}
 
{{i18n|Shape:getMask}}

Revision as of 10:49, 25 March 2011

Gets which categories this shape should NOT collide with. The number of masked categories is the number of return values.

Function

Synopsis

... = Shape:getMask( )

Arguments

None.

Returns

number ...
Numbers from 1-16

Examples

With how many categories does this shape collide?

print('shape collides with', select('#', shape:getMask()), 'categories')

See Also


Other Languages