#Best approach for an interact system?

1 messages · Page 1 of 1 (latest)

ember lake
#

I'm trying to interact with all sorts of objects - chests/NPC's/signs etc. I created a chest that I could interact with, however I think my approach was the wrong one. I essentially put the unique code into the chest, rather than creating a lot of the interaction via signals or something?

Sorry I'm still so new so I find it hard to explain things...

#

I asked ChatGpt and it wanted me to "create an interactable base class or script that all interactive objects inherit from"

thorny hawk
#

an interactable base class does make sense, but for more complex games you might wanna have it be a component instead if you want something to be both interactblae and do somethin gelse

ember lake
#

Thanks for the response! Would you happen to have any resources that might be beginner friendly to setup this sort of system?

#

I think I need to watch someone do it first for it to make sense what I'm trying to build...

thorny hawk
#

try looking up tutorials on youtube for it

#

either just an interaction tutorial or an inheritance and composition tutorial

ember lake
#

Ok thanks I'll have another look. I did try a few but I just got more confused. It's hard to find someone who explains things for beginners like Brackeys 😥

thorny hawk
#

most of these tutorials assume basic godot and gdscript knowledge

ember lake
#

Yeah I think you're right