First commit 🎉
This commit is contained in:
commit
43ea213f9b
728 changed files with 37080 additions and 0 deletions
20
addons/popochiu/engine/objects/hotspot/popochiu_hotspot.gd
Normal file
20
addons/popochiu/engine/objects/hotspot/popochiu_hotspot.gd
Normal file
|
@ -0,0 +1,20 @@
|
|||
@tool
|
||||
@icon('res://addons/popochiu/icons/hotspot.png')
|
||||
class_name PopochiuHotspot
|
||||
extends PopochiuClickable
|
||||
## Areas players can interact with (i.e. something that is part of the room's background: the sky,
|
||||
## an entrance to a cave, a forest in the distance).
|
||||
##
|
||||
## When selecting a Hotspot in the scene tree (Scene dock), Popochiu will enable three buttons in
|
||||
## the Canvas Editor Menu: Baseline, Walk to, and Interaction. This can be used to select the child
|
||||
## nodes that allow to modify the position of the [member PopochiuClickable.baseline],
|
||||
## the position of the [member PopochiuClickable.walk_to_point], and the position and the polygon
|
||||
## points of the [b]$InteractionPolygon[/b] child.
|
||||
|
||||
#region Godot ######################################################################################
|
||||
func _ready() -> void:
|
||||
super()
|
||||
add_to_group('hotspots')
|
||||
|
||||
|
||||
#endregion
|
Loading…
Add table
Add a link
Reference in a new issue