summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-07-30 17:39:57 +0200
committerGitHub <noreply@github.com>2020-07-30 17:39:57 +0200
commit9bba52c4000a06043f5100dbb0ef66d869707ffc (patch)
tree36d5ac4a64a03a72f17192821611d3045fa50d33 /doc
parente5725dfb8e476a5a6f63f020a23a53ca3ef610e9 (diff)
downloadminetest-9bba52c4000a06043f5100dbb0ef66d869707ffc.tar.gz
minetest-9bba52c4000a06043f5100dbb0ef66d869707ffc.tar.bz2
minetest-9bba52c4000a06043f5100dbb0ef66d869707ffc.zip
content_cao: Support texture animation for upright_sprite (#10020)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 2d22dc899..8ac3ad7f2 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -6077,15 +6077,15 @@ object you are working with still exists.
* `get_yaw()`: returns number in radians
* `set_texture_mod(mod)`
* `get_texture_mod()` returns current texture modifier
-* `set_sprite(p, num_frames, framelength, select_horiz_by_yawpitch)`
- * Select sprite from spritesheet with optional animation and Dungeon Master
- style texture selection based on yaw relative to camera
- * `p`: {x=number, y=number}, the coordinate of the first frame
- (x: column, y: row), default: `{x=0, y=0}`
- * `num_frames`: number, default: `1`
- * `framelength`: number, default: `0.2`
- * `select_horiz_by_yawpitch`: boolean, this was once used for the Dungeon
- Master mob, default: `false`
+* `set_sprite(p, num_frames, framelength, select_x_by_camera)`
+ * Specifies and starts a sprite animation
+ * Animations iterate along the frame `y` position.
+ * `p`: {x=column number, y=row number}, the coordinate of the first frame
+ default: `{x=0, y=0}`
+ * `num_frames`: Total frames in the texture, default: `1`
+ * `framelength`: Time per animated frame in seconds, default: `0.2`
+ * `select_x_by_camera`: Only for visual = `sprite`. Changes the frame `x`
+ position according to the view direction. default: `false`.
* `get_entity_name()` (**Deprecated**: Will be removed in a future version)
* `get_luaentity()`