

If you set the argument "notme" to true, the object will ignore itself in the deactivation. Make sure you don't deactivate important objects (like the object calling the code!). Instance_activate_region(view_xview, view_yview, view_wview, view_hview, true) Instance_deactivate_region(view_xview, view_wview, view_hview, false, true) Try deactivating anything that's outside of the player's view, and destroy anything that's outside of the room.įor example, put this in the Step Event of an invisible object that sits in each level: To that effect, instance_destroy() and instance_deactivate() are your friends. And the more work an object is doing each step, the slower it will be, so take care to make sure nothing is awake if it's not needed. I've heard that ~50 instances is the most that you should have awake at once. Object instances slow down Game Maker a LOT. Here are some tips, from what I think is the most important, to leaster. And now I pass that knowledge down to you! But with a little research, and some good advice from experienced GM users, I started to make some optimizations to my game that significantly increased its speed. Game Maker is kind of notorious for being slow anyway, so it didn't take long for me to hit its limits. You can either browse the GameMaker Marketplace and look for the right extension for you, or create an extension yourself if you feel like coding a little DLL specifically for your project.Intro: Since I'm a pretty mediocre programmer, I often go for an easy solution to my coding problems rather than an efficient one.

On Windows or macOS you need a library (DLL or Dylib respectively) to tell the OS you want to open a given video file with a particular codec HTML5 may not let you do such a thing mobile platforms have a different way of dealing with flow control. Opening a video file is a different operation on different OSs. This is a reasonable decision by YoYo Games to keep the GMS2 codebase clean and move all platform-dependent, OS-specific source code outside and consider it an extension. GameMaker Studio 2 moves a lot of built-in functionality from previous versions into extensions. Whilst there were built-in functions to open video files in previous GM versions, these have been marked as Obsolete Splash Functions in GMS1 and don't even appear in GMS2's Obsolete Functions list, meaning that they have been likely definitely removed.Īs stated in the 3rd Party Support section of GMS2's Obsolete Functions: Yes, you can play videos through GameMaker Studio 2, but you'll have to open and play the file yourself through extensions or DLLs.
