I would like to make a scene where the players can write their names on the phone but I have a problem. When Player 1 clicks on the blue square to validate his name, then his name is displayed in all the text areas
I would like his or her name to appear in only text area number 1.
I attach two screenshots of my events and the āgameā link to see the extent of the problem.
Are all the text areas on the scene the same object named āNomJoueurā? If so, the āChange the textā¦ā action will affect them all because technically it should.
You could either create separate objects for each of the text areas with different names, OR, add an instance variable to each of them to distinguish them from one another and add that in your conditions.
For example, add the instance variable WhichPlayer to each of the text areas, one with the value Player1, another with Player2, another with Player3.
Sorry, I forgot to translate the code into English. I have just modified the photo
When I click on the button nothing happensā¦ I donāt know if I put the line of code in the right place or if I need to move it or if I need to change other thingsā¦
Iām not sure I quite get the text area setup you have going here. You have just the 1 text area used for showing captured input called NomJoueur? If so, that kind of neglects the point of using/checking for the instance variables (if every text object has itās own name.)
Let me try something over here and Iāll post back in a bit.
Sorry, didnāt see your post in time so tried recreating it from scratch. Anyway, see if this helps - itās a little different but I think does what youāre trying to do.