PopochiuRegion - carenalgas/popochiu GitHub Wiki

Description
Inherits from Area2D.
Can trigger events when the player walks on them. Can tint the PC.
Properties
Export
- description String. Default
''. A description that can be used to show more info about the Region. - enabled bool. Default
true. Defines if the Region can trigger behaviors when characters enters or leaves. - script_name String. Default
''. The identifier of the Region used in scripts. - tint Color. Default
Color.white. The color to aply to the character that enters the Region.
Public
Nothing here yet.
Private
Nothing here yet.
Methods
Virtual
🍑 For a detailed and exemplified description of all the virtual methods of this class go to the Your scripts > Region page.
-
on_character_entered( PopochiuCharacter
chr) voidCalled when a
chr(PopochiuCharacter) enters the region. -
on_character_exited( PopochiuCharacter
chr) voidCalled when a
chr(PopochiuCharacter) leaves the region.
Public
Nothing here yet.
Set and get
-
_set_enabled( bool
value) voidEnables or disables the region, updating also the
monitoringproperty inherited from Area2D tovalue.
Private
-
_check_area( PopochiuCharacter
area, boolentered) voidVerifies if the object that entered or exited this node is a PopochiuCharacter. If
true, the corresponding method is called:on_character_enteredoron_character_exitedrespectively.