You’ve decided to try out Construct 3 and use it to make games. Your first step might have been to read and complete the Beginner’s guide to Construct 3 . If yo...
The INSTANCE VARIABLES EXAMPLE
I delete "System, Every tick" event, and add an action to "Text, Set text to Sprite.ClickCount" at "Mouse, On Left button Clicked on Sprite" event, but all Texts change when I click any Sprite, why?
May i set text when "Mouse, On Left button Clicked on Sprite"?
This is because of how picking/events work : construct.net/en/make-games/manuals/construct-3/project-primitives/events/how-events-work
You do not have a single instance of "Text" picked, so, the action applies to all existing "Text" instances.
To do what you want to achieve, you need to add a condition to your "Mouse, On left button clicked on Sprite" event and pick the associated "Text" instance.
This can be done using containers, or adding a instance variable to the "Text" object type, holding the UID for its associated Sprite for example.
Thanks for reply!