Table of Contents
src / player / landed_effect / landed_effect.tscn
Diagram
Instantiators
|
Caution
|
No other scene instantiate this scene. |
Scene Tree
-
LandedEffect AnimatedSprite2D
Signal Connections
$.:[animation_finished]⇒$.
func _on_animation_finished() -> void:
queue_free()
Properties
| Name | Value |
|---|---|
scale |
|
sprite_frames |
|
autoplay |
|
frame |
|
frame_progress |
|
offset |
|
script |
landed_effect.gd
extends AnimatedSprite2D
const DEFAULT_SCALE = 4
func spawn(player: Player) -> void:
position = player.position
scale = Vector2(1, 1) * DEFAULT_SCALE * min(player.falling_time, 2)
player.get_parent().add_child(self)
func _on_animation_finished() -> void:
queue_free()
