Node parameters change in script, but not in a node

Godot Version

I’m on Godot v4.2.2

Question

I was trying to make a mechanic, where you collect coins and then the end of the level appears. But for some reason, when I try to change the parameters of my scene node (which is the level exit), parameters DO change inside of a script, but DO NOT change inside of a node itself (nor the scene node, nor the level scene, where it’s a child).

I think I should call some function to update the node itself to update its parameters. But what’s the real fix?

Are you looking at the remote tab in the scene tree while the game is running?

You need to check these in the Remote tab, you’re in the Local tab

I’ve checked (and also discovered) the remote tab, and there’s also no changes.

I tested this and indeed don’t change the results, i recommend you open an issue on Godot github to verify that

I’ve fixed the issue lol.

My custom signal is initiated inside the goal.gd script, but the signal itself is emitted from another script, that connected to another node, Game Manager. When I’ve decided to move the signal to the Game Manger node and connect a function from the goal.gd script to it, the issue was fixed.

The more you know…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.