-
-
Notifications
You must be signed in to change notification settings - Fork 21
PopochiuRegion
Inherits from Area2D.
Can trigger events when the player walks on them. Can tint the PC.
-
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.
Nothing here yet.
Nothing here yet.
🍑 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.
Nothing here yet.
-
_set_enabled( bool
value
) voidEnables or disables the region, updating also the
monitoring
property inherited from Area2D tovalue
.
-
_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_entered
oron_character_exited
respectively.