Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+2)

I love this project and its worked really well so far, except one bit, For some reason I keep coming up with the error

E 0:00:25:0486   Signal 'pressed' is already connected to given method '_on_Button_Pressed' in that object.
  <C Source>     core/object.cpp:1476 @ connect()
  <Stack Trace>  DIalogueManager.gd:127 @ UpdateUI()
                 DIalogueManager.gd:98 @ HandleNode()
                 DIalogueManager.gd:89 @ NextNode()
                 DIalogueManager.gd:142 @ _on_Button_Pressed()

Any help would be really appreciated, thnx

(+1)

BTW I fixed it, here's the fixed version for reference:

func UpdateUI():
if curent_node_id >= 0:
if current_node_affect > 0:
AffectRecognition()
dialoguePanel.show()
for x in dialogueButtons:
x.hide()
#disconnect buttons
if x.is_connected("pressed",self,"_on_Button_Pressed"):
x.disconnect("pressed",self,"_on_Button_Pressed")

Thankyou, I love your code :)

(1 edit) (+1)

Hey, I am glad it was of help to someone, will fix it when I get back from work , thanks for the input :D


Edit: Fixed , thanks for pointing that out , that was a silly mistake :D

Is fine, thanks for the code, its so adaptable for everything :) !!!