Using a text object to display a variable

I am attempting to display a variable through text for something like a score or health display, however I can’t figure it out

thanks in advance :smile:

why arent you look some tutorials before start working with a new tool or engine? I’m sure one of the first tutorials includes the answer to this.

Try something like this:

The text object here is “timer” and the variable put into the text object is the global variable “Time”. But you can do this for variables of score, health, etc.

If you go to this tutorial and scroll about halfway down to “Use Variables in Expressions” it can show you how to put different kinds of variables into text objects.

2 Likes

I’m not sure if this has been updated since I last used GDevelop - I think it’s got simpler. I think it’s like the last line of this code.