Godot Version
4.3
Question
I have created functions that enable and disable collision shape. This seems to work fine when I tested it from within the scene but on trying to call the function on another scene it seems to not work properly.
So here if I press f it turns off collision and if I press g it turns on collision. It works fine and the collision works too and when collision is on and player passes by the shiny thing it plays the cutscene. But when I call it from another function it seems to call the turnOnCollisionShape function (I know this for sure because the debug message is called) but it doesn’t seem to turn on the collision shape for whatever reason as shown below.
This is another scene and turnOnCollisionShape and turnOffCollisionShape
The function is being called because its calling the right debug message but the collision shape doesn’t seem to work for some reason. What am I doing wrong?
Thanks in advance