0 votes

I've been trying to change a richtextlabel in a singleton. I've done this successfully for an almost identical system. The example in the bottom of the image works. The one on the top is the one I'm having issues with. Am I doing something wrong? The only issue I can see is the node being an area instead of a body.
The Code I've written for this system. The bottom one works, the top doesn't. I don't know why.

in Engine by (44 points)

what exactly is not working?
does the code enter the _on_respawn_area_entered() section?

No errors, nothing in debugger code. I meant to say the text wouldn't change; if I change set the text in the editor to 0, it says 0. Yes, the code enters the onrespawnareaentered() section.

Now neither of them work

sorry but you have a print("death count") line inside the _on_respawn_area_entered(), and you said nothing is displayed in the debug.
this is quite a strong evidence that piece of code is NOT being executed, meaning _on_respawn_area_entered() is not called, or am i wrong?

1 Answer

0 votes

You mean no error shows up, no issue in debugger console, just no text appears ?
Did You disable BBCode for both of those Rich text labels ?

by (1,110 points)

No errors, nothing in debugger code. I meant to say the text wouldn't change; if I change set the text in the editor to 0, it says 0. BBCode is disabled for both of them.

Now neither if them work

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.