Added reg_anim_animate_and_move script function (closes #497)

This commit is contained in:
NovaRain
2023-12-27 13:18:52 +08:00
parent cfcc66ad1a
commit 7e47607781
7 changed files with 137 additions and 106 deletions
+9 -1
View File
@@ -777,7 +777,9 @@
opcode: 0x825a
- name: reg_anim_animate_and_hide
detail: void reg_anim_animate_and_hide(ObjectPtr, int animID, int delay)
doc: Exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
doc: |
Works exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends.
opcode: 0x825b
- name: reg_anim_light
detail: void reg_anim_light(ObjectPtr, int light, int delay)
@@ -799,6 +801,12 @@
detail: void reg_anim_callback(procedure proc)
doc: Adds the given procedure to an animation sequence-list and executes it in the registered sequence.
opcode: 0x827e
- name: reg_anim_animate_and_move
detail: void reg_anim_animate_and_move(ObjectPtr, int tile, int animID, int delay)
doc: |
Plays the specified animation while simultaneously moving the object to the given tile.
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends.
macro: sfall.h
- name: Art and appearance
items: