My very first game made with GMS2 is live and I am very happy about it. I migrated from another technology and I am very happy for my decision! I can confirm that developing with GMS2 is not only faster, but also a lot easier.
It is a collection of educational mini games that practice memory...
Are there any difference for game if I have (for example) 10 objects or 10 instanses of one object? For memory/performance/etc.
I have found 2 ways to make a cutscene, and first is to create a new object for every cutscene, second is to create different instances of one object (it uses...
I have lately ran into an interesting "problem" which is making me pretty confused. The project I am working on has level generation, which is creating a lot of instances. Some levels are bigger than others, and thus are more prone to having more instances.
One day I realized that the...
Just short question. It's not that clear in the GM Help.
If i have a local ds_grid like this:
var grid = ds_grid_create(...)
Do I have to destroy it after use as well?
Thanks a lot!
The manual says that destroying a data structure removes all values that it contains, but does that include other data structures?
If, for example, I have a stack of maps, does ds_stack_destroy() remove all those maps, too?
My memory usage grows with every room_restart() so I'm trying to...
Hey guys, possibly dealing with my first memory leak ever here. C: drive space lost permanently everytime I launch my game. In Debug mode right at game start, the Graph starts going way up and hits the roof soon after the game has started.
At the start of the game, I only have the randomize()...
Hello and thank you for taking your time to answer this question ! BASICALLY MY GMS:2 IS EATING WHOLE MY RAM
My rig : ( LenovoT430 )
4GB ram, intel-i5-3320M processor @2.60GHz boosted to 3.30GHz with the help of turboboost.
( I know it's weak but It hasn't been a problem for me unless I'm...
Should surface_free still be called even if the surface_exists returns false.
Like, is there internal meta data that GM uses and still needs freeing?
if ( surface_exists( surface ) )
surface_free( surface );
or just always delete
surface_free( surface );
I'm currently working on a project that, according to the debugger has a gradual memory increase/leak, that's not too much of a concern until about 10 minutes into play.
I have made sure that all ds_ data structures, surfaces etc are destroyed, and I'm under the impression that it has something...
Help me clear something up, I am using a script to find the nearest object, However I noticed when called it does a DS_grid_create.
now usually this may not cause an Issue but im calling the thing ALOT!
I take it that this thing firing off every frame is NOT good!?
its not major...
Hi, Just started working with external/run-time generated assets and apparently GM is not a fan, since it throws them all on different texture pages.
I've tried being councious around it, load only a small portion of sprites. based on what is needed. I unload (sprite_delete and sprite_flush)...
############################################################################################ FATAL ERROR in
action number 1
of Alarm Event for alarm 0 for object obj_gen_xs:
Memory allocation failed: Attempting to allocate 2097672 bytes
I am currently working on the menu for my game and am using Friendly Cosmonaut's code. I decided that as well as a pause menu, there should also be menu in the title screen. Only issue is that as well as a separate main menu array, I also need another array for ever time you press back since I...
I just recently got Adobe After Effects because of the power it has to animate literally anything.
I had planned on using it to animate my sprites for Game Maker, however I ran into a few issues:
My animations can be rendered as a PNG or JPEG sequence, but there are over 200+ images after...
I have a projectile penetration mechanic in my game and I currently use ds_lists in each projectile to store identifiers of each object it collided with so it doesn't trigger more than once. I currently do this...
# Create Event
penetrated_objects = ds_list_create();
# Collision Event
Hello! My game has more that 200k downloads for now. Crashlitycs show me the same error in different places of the code. It happends in during create event of different objects at any moment of the game. Right after start or at any other moment. Here is the text of the error:
E/GML < FATAL...
I have been trying to make a simple Presentation style app for iOS, targeted at iPad Air. It contains several 2048 x 1536 sized PNGs, for the lack of time.
I have made one room, containing a couple of objects, one as the relevant image as sprite, and a couple more as buttons for...
I'm using http_request for account logins from GMS2 and http_get to poll my SQL database for character locations, equipped items, etc. The database gets http_get'ed every alarm = 30 ( twice a second ). I've adjusted this to once per second but noticed that my RAM gets utterly pummeled this...
My project is a top down shooter that involves loading and unloading external sounds whilst driving a car. Sometimes, but not always, the game freezes and crashes without a fatal error when I exit a vehicle. Usually, the looping song stops, but I would occasionally notice that the...