This repository has been archived on 2025-01-17. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
blood-and-mortar/objects/interactable.gd

17 lines
281 B
GDScript

@tool
class_name Interactable
extends Area2D
signal interacted(user: Node)
func _init() -> void:
collision_layer = 0b0100_0000 # Layer 7 (interactable)
collision_mask = 0
input_pickable = false
monitoring = false
func interact(user: Node) -> void:
interacted.emit(user)