probem making a inventory

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bobidabob

i was watching a video by Arkeve on making a inventory. could someone watch the video and tell me what i did wrong? i couldnt find out, here is the error:

connect: In Object of type ‘Panel’: Attempt to connect nonexistent signal ‘get_Input’ to method ‘Node2D.slot_gui_input’.

and here is the part of code causing it:

func _ready():
	for inv_slot in inventory_slots.get_children():
		inv_slot.connect("get_Input", self, "slot_gui_input", [inv_slot])

here is the link to the video, https://www.youtube.com/watch?v=FHYb63ppHmk

thanks

The script that is attached to your inv_slot nodes doesn’t have a signal named get_Input within it.

timothybrentwood | 2021-11-13 22:10

:bust_in_silhouette: Reply From: Inces

You need to introduce signal before connecting it. Just take your custom inventory slot node script and type there

signal get_Input