Hello, I got a problem about Instance Variables.
I did research on GDevelop Instance Variables, and try to use different type of Instance Variables, I still got problem.
If I setup and use an “Number” type of Instance Variables, It can show correct value on the screen. but not for “String” type of Instance Variable.
I make six pictures screenshot. To show the results for when I use “Number” type of Instance Variable and use “String” type of Instance Variables. screen shot (01-04) screen shot (05,06)
Hi, Thanks for your reply.
The TextObject doornotice’s instants variable is ‘vartitle’.
I try to use : Change the text of doornotice: set to doornotice.VariableString(vartitle)
Also try to use: Change the text of doornotice: set to doornotice.VariableString(doornotice.vartitle)
In runtime, the text still shows: 0
As MrMen said, you don’t need quotes but it shouldn’t make the variable 0, it should only add the quotes to the string like cat to “cat”.
I’ve seen where instance variables get messed up especially if you create them multiple times using different areas. I would try deleting the variables from both the instances and object then add the variables again. Also, make sure you’re using the most recent version of Gdevelop.