Stable interface for both Animation player and Animated Sprite (#363)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis Ploeger
2021-08-10 21:35:01 +02:00
committed by GitHub
parent 61726bca81
commit 15bf1a8c81
11 changed files with 413 additions and 138 deletions

View File

@@ -188,6 +188,14 @@ export var v_speed_damp: float = 1
Speed damp of this item if movable
### animation\_player\_node
```gdscript
export var animation_player_node: NodePath = ""
```
The node used to play animations
### animations
```gdscript
@@ -196,14 +204,6 @@ var animations: ESCAnimationResource
 ESCAnimationsResource (for walking, idling...)
### animation\_sprite
```gdscript
var animation_sprite
```
Reference to the animation node (null if none was found)
### terrain
```gdscript
@@ -234,7 +234,7 @@ be loaded, if inventory_item_scene_file is set.
### get\_animation\_player
```gdscript
func get_animation_player()
func get_animation_player() -> Node
```
Return the animation player node