🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

So, every time I try to talk to my custom character, it says this


___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Other Event: User Defined 0
for object TextBox:

trying to index a variable which is not an array
at gml_Object_TextBox_UserEvent0_1 (line 5) - max_i = string_length(text[page]);
############################################################################################

what does this mean?

(Edited 1 time)

Ah yes. Sorry about the rather stark lack of documentation. It was promised, but I have been doing spots of work on other projects.


Text must be passed as a string array instead of a string, with each entry in the array denoting one page. Even if you have only one page, you would still pass a single entry array.


Thusly, text = "String here"; would become text[0] = "String here";

I also had it happen once, but, one question, what would the full line look like then?