region

  1. Rafael Augusto

    SOLVED Too many objects and slow game instance_deactivate_region only makes it worse!

    I have two games, one works perfectly, the other probably because it has many objects, it slows down sometimes. I tried using instance_deactivate_region but after a few levels it just makes the game worse. It could be some process "stealing" memory or processing but since in another game it...
  2. Daniel Mallett

    GameMaker Regions randomly unfolding

    I haven't spotted exactly how this happens yet but my regions keep unfolding randomly. Any ideas. It's getting a little frustrating.
  3. X

    #region not working

    I recently updated to 2022.2.0.614 and now #endregion is red for the first two letters and gray for the remaining letters. The comments I added following the #endregion keyword are read as code now as well which is causing some problems. I've attached a screenshot to show what I'm talking about.
  4. Daniel Mallett

    Windows regions

    This is really a yes or no question. Can I hide my region tags so they don't appear as text but just a plus minus Jobin's?
  5. D

    Activate and Deactivate Regions or States

    Working on a Beat Em Up and new to GM Studio 2. I was thinking of assigning basic 3 kick combo to their own States/Regions. Once the player earns a Power Up, that Series of combos will need to be deactivated for x amount of time while a new Region/States of combos are activated until time...
  6. T

    Legacy GM [SOLVED] Delete objects in region

    I have a script to automatically generate a 'forest' out of tree objects but I want to have a bare patch in the middle. I wanted to accomplish this tree-less patch in the middle by deleting the tree objects within a radius with collision_circle but my code seems to do nothing. Mainly I'm looking...
  7. Le Slo

    Deactivating a region

    Hello! I'm trying to make a specific deactivating system because of some objects I have in my game should behave differently to this matter. I started trying to replicate the instance deactivate region function. So my code looks like this: var value=1; var NCX=obj_camera.camX; var...
  8. jobjorgos

    Legacy GM why cant I add a marge to instance_activate_region?

    instance_activate_region(view_xview[0], view_yview[0], view_wview[0], view_hview[0], true); Works fine, it is just a little too small. Now I cant add a marge, whatever values I put it, I keep seeing objects dissappear at the edges. instance_activate_region(view_xview[0] - 264, view_yview[0] -...
  9. Aaron Craig

    GameMaker Regions and pressing enter

    I'm a big fan of regions, but when I create one and press enter at the end of the line, it opens up the region. Is there a setting anywhere or a change I can make so that when I press enter, it moves onto the next line?
  10. Le Slo

    GameMaker region endregion

    Hello, I want to tidy my code as much as I can so I discovered the region system but when I use it, I can't see the button to collapse the code. Here is a look: Am I doing something wrong?
  11. G

    Restrict Movement of Object to Circle

    Simple question but cannot think of the answer.. How do I restrict an object's movement to a circular region? I have an object which follows the mouse but I don't want it to be able to stray more than a certain distance from another object, how do I restrict the movement of this object to a...
  12. B

    Legacy GM Get list of instances in region

    Hi there, just curious if anyone knows if there is a way to return an array of the ID's of objects within a region? For example if I had 4 objects that are all in a region that is 128 x 128 pixels in size, would there be a way to get the ID's of JUST those instances returned in an array...
Top