Files
2024-08-03 22:13:40 +02:00

21 lines
295 B
GDScript

extends Area2D
@export var rot_speed = 3
@onready var timer = $Timer
var innocent = false
func _physics_process(delta):
rotate(rot_speed * delta)
func _on_body_entered(body):
if not innocent:
body.shrink()
innocent = true
timer.start()
func _on_timer_timeout():
innocent = false