I am trying to capture the value at the end of a timer.
after every 1 second, add 1 to Global Variable Time. ( as the seconds count up, I get it to show, 1, 2 ,3 so on)
You have to get 3 points,. So I have another Global Variable, "SCORE" so that I can give you 1 point per item..
So, when you have a total of 3 points, when global var. SCORE = 3. I want to go to another layout ( got that part) and SHOW ME on that layout, the TIME. How can I capture that number.. The number will be whatever it is, when the player gains the 3rd point. ( basically how long it took them.) thanks.
As far as I understood you already have a variable you update every second. Use the final value of that variable...
stop the timer when it reaches the point in time that you move forward and record that value in a var
using the final number on the global variable is where I am stuck. the HOW part is what is getting me. Say the person takes 30 seconds to get the 3 points. on the layout it jumps to, I should see... something like.. your score = 30 HOW TO DO THIS.. in terms of the events sheet is where I am stuck. thanks all.
Develop games in your browser. Powerful, performant & highly capable.
Create a text object and set its text to the variable.
got that, but I'm wanting to report the value, on another layout. Maybe I am asking the wrong question, sorry. Just learning. I appreciate your help.
Unless you reset the variable, its value should still be available for the next Layout...
hmmmmm... pretty cool. — Thank you for taking the time bro.
I did not know that you could add another global variable as a value to a global variable. ( try saying that 3 times.) Again, thanks man. Awesome and just want I needed.
Remmy112 Most welcome we are here to help any time bruv