Godot Version
func dice_Result(dice_Num1, dice_Num2):
var dice_Num = dice_Num1 + dice_Num2
print("1st die "+str(dice_Num1))
print("2nd die "+str(dice_Num2))
print("total "+str(dice_Num))
dice_result1.emit(dice_Num1)
dice_result2.emit(dice_Num2)
Question
how would I send the value of dice_Num1 or dice_Num2 to a differnt sence when the func gets called?
Seems like you have successfully done that by emitting the dice_result1
and dice_result2
signal, now you must connect that signal. You could do this through the editor.
In this lesson, we will look at signals. They are messages that nodes emit when something specific happens to them, like a button being pressed. Other nodes can connect to that signal and call a fu...
I forgot to connect them thank you
system
Closed
January 4, 2025, 2:09am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.