I want to use nametags for Yarn, the question i face is that, can a nametag be a text variable? if so, how can i set it up and use i,t including in yarn(if required).
You need a bbtext object for your nametag
Put it where you want it in your scene
Invoke a Yarn command with an event like this
In your dialogue you want the name of the Yarn command and the name you want to appear in the bbtext object
You get this when you run your game
Your dialogue might look something like this
The dialogue would need to be in its own bbtext box, not the same one as the nametag.
You could give the string “Fred” to a Yarn variable and do something with that string back in GDevelop, but I haven’t tried that.
2 Likes