Stable interface for both Animation player and Animated Sprite (#363)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user