Skip to content

PopochiuRegion

Carenalga edited this page Feb 6, 2023 · 5 revisions

icon_region-x4

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.

Public

Nothing here yet.

Set and get

  • _set_enabled( bool value ) void

    Enables or disables the region, updating also the monitoring property inherited from Area2D to value.

Private

  • _check_area( PopochiuCharacter area, bool entered ) void

    Verifies if the object that entered or exited this node is a PopochiuCharacter. If true, the corresponding method is called: on_character_entered or on_character_exited respectively.

Clone this wiki locally