Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | KKIILLOOUU |
Hi,
i have a kinematicbody wich has an instancied scene with a button ( panel’scene). This scene is a panel with points and clicking on button uses those points. The button is disabled when point = 0. It works but in the kinematic body’ scene has an other instancied scene (kinematic body with the panel scene). If i use point by clicking on button and point = 0 in one of the panel, the two panel’s scene have the button wich is disabled. I have changed the name of the panel and the name of script, but same problem.
trees:
> ->Kinematicbody1
> ->Panel (script related to panel)
> - > Button
> - >kinematicbody2
> - >panel2 ( script related to panel 2)
> - > Button
Thank’s
what is your button script? are buttons instanced in code or are they added to the panel node in the editor? where is your script which defines what the buttons are doing?
from your description, you’re using the same script for all instances hence id the condition in met once, it’s met for all instances.
it will be difficult to help you unless you can provide the code or sample project.
Macryc | 2020-07-06 12:23