PointClick Node
The PointClick
Node implements all the logic of PACgd.
Table of contents
Initializing the Object
On the parent object of the Godot Scene
you will need to call the init
method of PointClick
. The function init
takes two parameters:
- The
Character
that the player controls. - A dictionary to translate textual objects in the
CutScene
into GodotNodes
of the Scene.
Playing CutScenes
To play a CutScene
, call the method play_cutscene(filename, dict)
from the PointClick
object. The play_cutscene
method takes two parameters:
filename
: The path to the file to be playerdict
: A dictionary translatingstrings
intoobjects
, that is used only on thiscutscene
.
Important
The dictionary passed as parameter of play_cutscene
is going to be used to update the dictionary defined during initiation. This can be helpful to change a definition on each play of the cutscene. See an example of this in our Complex Interaction tutorial.