GetNumCollisions
(Difference between revisions)
(Created page with "Get the number of collisions for an object. Check YoFrankie demo for a perfect example, this is used on the FeetBox there. This is one thing you should use to make a charact...") |
Dahnielson (Talk | contribs) |
||
Line 12: | Line 12: | ||
print(Coll) | print(Coll) | ||
end | end | ||
+ | |||
+ | [[Category:Lua scripting]] |
Revision as of 18:06, 4 February 2014
Get the number of collisions for an object.
Check YoFrankie demo for a perfect example,
this is used on the FeetBox there. This is one thing you should use to make a character jumping.
Example, Numbers of collisions for object will be displayed in maratis console window.
object = getObject("object") function onSceneUpdate() Coll = getNumCollisions(object) -- you can rename Coll whatever you want print(Coll) end