Add onSpritePlacement.
authoralmikes@aol.com
Wed, 03 Dec 2014 04:11:08 +0000
changeset 411 dbb7937903a4
parent 410 c0367902bea7
child 412 d2f4b5b9b77c
Add onSpritePlacement.
LuaAPI.wiki
--- a/LuaAPI.wiki	Wed Dec 03 03:57:51 2014 +0000
+++ b/LuaAPI.wiki	Wed Dec 03 04:11:08 2014 +0000
@@ -254,6 +254,11 @@
 
 <blockquote>This function is called when a hedgehog is restored (unhidden).</blockquote>
 
+=== <tt>onSpritePlacement(spriteId, centerX, centerY)</tt> (0.9.21) ===
+This function is called when a [Sprites Sprite] has been placed.
+
+`spriteID` is the type of the sprite, you find a list at [Sprites Sprites]. `centerX` and `centerY` are the coordinates of the center of the sprite.
+
 === <tt>onGirderPlacement(frameIdx, centerX, centerY)</tt> (0.9.21) ===
 This function is called when a girder has been placed.