#Corky bienng an idiot
1 messages · Page 1 of 1 (latest)
Aren't you trying to change the text?
Do you have a variable TMP_Text myText;
Assigning to text property is like myText.text = "abcd";
TMP_Text doesn't have a variable named TMP_Text
You've been told what to use
The variable name I used is example. You don't have to use myText and seems like you have ScoreText already
ah ok
So assign to ScoreText.text
omg u are jesus it worked
should i put in in update since its a clicker game and the number will go up
You can, just change the value when user clicks
hey im havin some issuies, i can tfind a way to do this, and ive looked on line, its obvious what im goin for
.. did you mean to use += ?
Yeah...
Will that work?
x += y is same as x = x + y
didnt seem to wrok
What did you try
Honestly it'll be way easier for you to learn C# first then try anything with Unity
when i press space the number didnt change
idk if its the command or the if the thing that shows it in start and should be in update
should i put the thing that shows it in update? or the command wrong
The code you update text is still in Start
huh, whats the problrm then
yes but i dont understand if your saying keepy it there, or still there as in you should change it
I didn't say keep it there, I'm saying it's in Start and that's why it's not updating.
ok thx
its not updating, or the command isnt working
heres the full page
Now I see you are using "space", use KeyCode.Space .. read document before use anything
like this
Stop guessing and look at documentation
According to this both should work:
https://docs.unity3d.com/ScriptReference/Input.GetKeyDown.html
thx
But this wont