Fatal Error in dialog textbox

B

Baaamie

Guest
I'm making a 2d game in gamemaker 2 and when I export and open the exe-file there pops up a fatal error.
I have no clue what the problem is. I can play my game flawlessly in the gamemaker project, but when I play it as an exe file this error pops up.
 

Attachments

YoSniper

Member
Clearly, the issue arises with the text[page] part.

When you initialized the variable text, you did not specify it as an array, so GM doesn't know that it's supposed to be one.

To initialize an array, simply initialize the first element, i.e.
Code:
text[0] = "";
Or something like that.
 
Top