20 lines
379 B
GDScript3
Raw Normal View History

2024-05-10 13:33:08 -04:00
extends GPUParticles2D
@export var size: Vector3
# Called when the node enters the scene tree for the first time.
func _ready():
process_material.emission_box_extents = size
func _on_mouse_entered():
2024-05-27 19:54:22 -04:00
if (get_parent().disabled):
emitting = false
return
2024-05-10 13:33:08 -04:00
emitting = true
func _on_mouse_exited():
2024-05-27 19:54:22 -04:00
if (get_parent().disabled):
emitting = false
return
2024-05-10 13:33:08 -04:00
emitting = false