12 lines
183 B
GDScript
12 lines
183 B
GDScript
extends Node2D
|
|
|
|
|
|
|
|
|
|
|
|
func _on_area_2d_area_entered(area: Area2D) -> void:
|
|
if area.is_in_group("spieler"):
|
|
position.y = 8
|
|
print(area.name)
|
|
$AnimationPlayer.play("new_animation")
|