Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Phannflaren |
I have a beam in my game which releases until a button is pressed. In order to get two of them, I dragged a second one of the same scene onto the main scene. The problem is when there are 2 or more of the same scene in the main scene, the collision boxes get messed up and pressing one button disables all of the collision boxes, but not the animation or the visual (Both in animated sprite) except on the one which it is connected to.
Essentially, I want to make each duplicate of the scene completely independent from each other without changing values or saving as a new scene.
You mention boxes, do you modify a Shape2D in a CollisionShape2D in your script? Can you show the function you enable and disable the collision in?
Cam | 2023-02-05 05:32