I have several text objects that I create dynamically throughout the game. It works everywhere except in this one place. I have the following actions:
Seems trivial and I’m not getting any errors in GDevelop, but when I export my game (web export) the text object gets created, but the text is not being set:
Instead, I’m getting the following error:
Error: Uncaught TypeError: gdjs.ScreenCode.GDplrEmojObjects1[i].getBehavior(…).setText is not a function
Looking at source code, it’s the following line:
Not sure how “Text” behavior of a Text object doesn’t have a “setText” function? I just updated from 5.2 to 5.3 and it works in preview, but not in (standalone) web export. And yet it works in web export with the text object I added earlier (in 5.2) - see that “Guest 3” label above the player? It’s also a text object and it works in that case, using the exactly same logic as in my 1st screenshot.