LuaAPI.wiki
changeset 865 ed6a7ad2770f
parent 864 a442063fcf2e
child 866 e8d5c66477b7
equal deleted inserted replaced
864:a442063fcf2e 865:ed6a7ad2770f
   936 || 5 || long || decreasing right ||
   936 || 5 || long || decreasing right ||
   937 || 6 || long || vertical ||
   937 || 6 || long || vertical ||
   938 || 7 || long || increasing right ||
   938 || 7 || long || increasing right ||
   939 
   939 
   940 ==== <tt>!PlaceSprite(x, y, sprite, frameIdx, tint, behind, flipHoriz, flipVert, [, landFlag, ...])</tt> ====
   940 ==== <tt>!PlaceSprite(x, y, sprite, frameIdx, tint, behind, flipHoriz, flipVert, [, landFlag, ...])</tt> ====
   941 Places a [Sprites sprite] at the specified position (`x`, `y`) on the map, it behaves like terrain then. `frameIdx` is the frame index starting by 0. This is used if the sprite consists of several sub-images. Only a subset of the sprites is currently supported by this function:
   941 Places a [Sprites sprite] at the specified position (`x`, `y`) on the map, it behaves like terrain then. `frameIdx` is the frame index starting by 0. The placement may fail, for example if the sprite goes too far out of the land boundaries. The function returns `true` if the placement was successful, `false` otherwise.
       
   942 `frameIdx` is used if the sprite consists of several sub-images. Only a subset of the sprites is currently supported by this function:
   942 
   943 
   943  * `sprAmGirder`
   944  * `sprAmGirder`
   944  * `sprAmRubber`
   945  * `sprAmRubber`
   945  * `sprAMSlot`
   946  * `sprAMSlot`
   946  * `sprAMAmmos`
   947  * `sprAMAmmos`