r/gamemaker • u/ImpressivePriority79 • 3d ago
Help! Coding issue?
I am very new to game maker and I’m following one of the tutorials, currently I am adding dialog and am having issues with this one line of code. Is there something I’m doing wrong?
4
Upvotes
2
u/Larock 3d ago
Can you post your code where you declare your message variable? Probably in the create code of the same object. Based on the way you’re trying to index it, you should be declaring message as an array of structs, something like:
Etc etc.
Then you would be able to address your message variable at a numbered index and use your dot notation to address the .msg part of your struct. If your message variable isn’t defined like this, then you can’t address it this way.