It looks like I didn’t express it correctly, the plusPoints variable will change, or more precisely, I will create many scenes with this variable and all these scenes will come to the same territory. After they arrive, points will be added. But it’s also worth considering that they can all add a different number of points.
I stick to my answer, It would be easier for you to declare a Global variable you can access from every scene and script from anywhere in your project.
Keep in mind the script with plusPoints is not a Body, it extends Node2D so it cannot overlap the area by iteself. Also any StaticBody2D will overlap with the area, including the floor/walls which may be undesired and need a if statement.
You do not need a Singleton/Autoload/Global to interact with collided bodies.
You’re 100% right and your answer is spot on. But the initial question was how to access a variable from outside of his script, hence my answer. Messing with globals will be useful down the road.
Thank you! I finally figured it out, I knew about Singletons, but I didn’t think it could be used like that. Basically, I added the points update to _process