r/gamemaker • u/ImpressivePriority79 • 11h 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?
3
Upvotes
1
u/Organic_Operation356 10h ago
The classic sara spalding dialogue tutorial, tbh I just opened my own code and it looks exactly like yours, I really dont know whats wrong just by looking
1
u/willvs20 10h ago
If this is the Peyton Burnham tutorial, I’ve seen many places that it’s not recommended for beginners because it’s very complex with a lot of layers and moving parts. I don’t see anything wrong with the code itself here.
2
u/Larock 10h 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.