crei0 @ crei0 @mastodon.gamedev.place Posts 0Comments 1Joined 2 yr. ago
crei0 @ crei0 @mastodon.gamedev.place
Posts
0
Comments
1
Joined
2 yr. ago
@plixel @Rodeo
The way I'm doing in my game is by
- Using a Signals.gd script
- Add that script to Project settings Autoload, this makes the script globally accessible (singleton)
- Then from the scene I want to send the signal, I do
Signals.mysignalwastriggered.emit( - Then on the scene/node (can by multiple) I want to receive the signal emission, I do
Signals.mysignalwastriggered.connect(myfunction) - Create the function "myfunction"