JuegoClase/Personajes/MovingPlatform/fall_damage.gd

7 lines
91 B
GDScript3
Raw Normal View History

2024-10-26 05:47:55 +00:00
extends Area2D
func _on_body_entered(body):
if body is Player:
body.takeDamage(99999)