src / player / landed_effect / landed_effect.tscn

Diagram

Diagram

Assets

200

Instantiators

Caution
No other scene instantiate this scene.

Scene Tree

  • LandedEffect AnimatedSprite2D

Signal Connections

$.:[animation_finished]⇒$.
func _on_animation_finished() -> void:
	queue_free()

Properties

Table 1. Root properties
Name Value

scale

Vector2(4.5, 4.5)

sprite_frames

SubResource("SpriteFrames_4uy46")

autoplay

default

frame

9

frame_progress

1.0

offset

Vector2(0, -5)

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()