Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Dang, this stuff is getting pretty impressive, even in WIP form. If you don't know about them already, look up "Structs & Constructors" in GameMaker's manual. You can do a lot with structs but they're really useful for organizing data.

Instead of like

punchUp = y - 8;
punchDown = y + 8;

You could do

punch = {
     up : y - 8,
     down : y + 8,
}

and then access them like punch.up or punch.down instead of having to remember a bunch of variable names.

Also check out the Code Editor 2 beta(?) in the options. It puts all of the events into one window.

Thanks for the suggestions! Funnily enough I both discovered and taught myself how to use structs the literal day before you left this comment. I was doing so for the room_get_info() function in an attempt to have a random room layout. The game this was for is now up! Thanks for all that you’ve done to help me.

P.S. Code editor 2 just isn’t really for me. I prefer the tabs system.