Game Maker Studio 2 introduced a simpler way to define arrays. You may have seen them used in other programming languages; Game Maker didn’t get support them until GMS2 came out in 2016, but now that we have them they’re an excellent quality-of-life feature!
Code:
#GameMaker
#GameMakerTutorial
#GameMakerArrays
– – – – –
I’ve now made that Patreon:
That promised social media link spam.
Anyone wanna donate?
Rate, comment, subscribe, watch more, enjoy!
Nguồn: https://historicshilohumc.org/
Xem thêm bài viết khác: https://historicshilohumc.org/game/
How would you do a 2d Array Literal in GMS2?
2.3 Beta just dropped! 😍
Wait- that's actually a relevant feature? That's just how how I've defined all of my arrays since starting to use gamemaker, and thought it was normal the whole time XD. Oddly, I even used Gamemaker 1.4 for a small amount of time before Studio 2, so I'm surprised I didn't notice it. I guess I only made one or 2 small demos in 1.4, so I must have had no use for arrays then.