maxgame/addons/popochiu/engine/templates/region_template.gd
2025-07-17 01:49:18 -04:00

17 lines
444 B
GDScript

@tool
extends PopochiuRegion
#region Virtual ####################################################################################
func _on_character_entered(chr: PopochiuCharacter) -> void:
# This is optional. You can put here anything you want to happen when a
# character enters the area.
chr.modulate = tint
func _on_character_exited(chr: PopochiuCharacter) -> void:
# This is optional, too.
chr.modulate = Color.WHITE
#endregion