We're missing some detail here that's not being reflected in what you're still posting. The above doesn't really help because:
- The code is not formatted as code for the forum. That loses context that's potentially VERY important for finding code-based issues. Please edit your above message and format the code for the forum. To do that, select the code block and press the
{ }
button in the forum editor's toolbar. Then, check the Preview
window to verify proper formatting.
- The reason I asked for a screenshot of your scene tree is to ensure that you're not making a mistake when manually reproducing it in your message.
What you're trying to do should be very simple, and there can only be a few things wrong (generally, scene tree organization, node names, or script associated with the wrong node). With properly formatted code and an image of your scene tree, it's likely that the issue can be spotted.