1. flyinian

    What are the ways to resize sprites

    I would like to give an instance a specific width and height while keeping it intact. I currently know of image x/y scale and 9 slice. scaling a sprite up will cause unevenness within the sprite. I am currently using 9 slice for the width and height of the sprite. This works fine as far as I...
  2. Bart

    SOLVED Optimizing terrain z value calculations

    Hi all. The last couple of days I've been working on an optimized way to calculate several z values on a terrain. For this I'm using ds_grids since they give you two free loops that are implicit and incredibly fast. Each instance that needs a z value at a specific (x, y) coordinate gets an...
  3. 2

    GML Get Room Properties (Listed Here) of Room You Aren't In

    Is there any way to get room height, instances, instance positions, or instance variables in a room that you aren't in? I was thinking these might be important for procedurally creating the map image in the corner and pause screen for a metroidvania game. I don't think loading every single room...
  4. Daniel Mallett

    GMS 2 text border issues

    x = 500; y = 500; string_val = "string"; draw_text(x, y, string_val); width = string_width(string_val); height = string_height(string_val); draw_rectangle(x, y, x + width, y + height, 1); I am trying to implement a dialogue with form controls, text, etc. I have been having problems...
  5. 2

    GMS 2 Find How Many Tiles in a Tileset

    How do you find how many tiles horizontally, vertically, and over all are in a tileset? I want to add 1 to the tile index of tiles in a tilemap every few frames until I reach the last tile in the tileset, then set the tile index to 1 and start over. How do I get this info from the tileset?
  6. 2

    GMS 2 Find Tile Layer's Width and Height

    Is there any way to find the width, and height of a tile layer. Width meaning the x of the first tile in the left direction to the x of the last tile + the tile's width in the right direction. Height meaning the y of the first tile in the up direction to the y of the last tile + the tile's...
  7. H

    GML Find the height of a sprite at a given X

    Hello, I have a very big sprite like this, with a PRECISE collision box: http://www.noelshack.com/2018-51-4-1545342830-lv-1.png As you can see, this is the ground of my game, and its width is 4096px. And I would like to know what's the height of the ground at x=300 for example. I know I could...
  8. PlayerOne

    GMS 2 [SOLVED] Getting a bbox width or height?

    Trying to find the bbox_width and bbox_height due to my project requiring different masks (ducking, running, etc).
  9. Z

    Improve Height Handling For Z-Tiling [SOLVED]

    Hi GMC ! For my top-down game, I'm using a Z-Tiling shader for depth sorting. The method is the same used by Ariak in this tutorial. For some reasons, few sprites are not tilted on the same angle (probably because "visible" images don't use all available pixels on every frames. Moreover, I set...
  10. D

    Best Width and Height for Rooms

    I was curious what the best width and height would be for a standard, non-moving room would be to fit most computers nowadays. Where, if they scale up or down, the game will not lose definition. I am still new to Gamemaker, so I appreciate your time. (I don't know if it matters, but I am using...
  11. Shadowblitz16

    GMS 2 get tileset width and height?

    does anybody know how to get a tilesets size? I need it for getting the length of the tileset
  12. Misu

    Getting z value from xy coordinates inside a triangle

    To be honest, I actually forgot how to do this technique. I have been searching everywhere online for formulas and coding steps but nothing seems to help. Even if this technique is inefficient, I need it for my model generation system (not used for real-time gameplay but for creation process...
  13. Nirwanda

    Legacy GM Slightly glitchy jumping

    Following a tutorial by Shaun Spalding, I created a controlled jump but I've run into a bug: if I hold the jump key just the right amount of time, the character will get stuck on the ground: Could it be a bounding box issue? Or is there something wrong with my code? or uhh..What else could it...
  14. jb skaggs

    GMS 2 ds_grid size (w,h) is that actually (r,c)?

    Also in the manual it says: ind=ds_grid_create(w,h) but it seems w seems to be the number of rows and h seems to be the number of columns when I try and use it. Am I misunderstanding? JB
  15. Ayziak

    GMS 2 [Solved] Need to find a way to get the real view width/height...

    Hey all, My game window is resizable, and set to keep its aspect ratio, so if I manually drag it to a certain size, it will have black bars on either side or the top and bottom. I need a way to get the value of the height of the window, but excluding the black bars. Basically, is there any...
  16. J

    How to extend an object sprite dynamically

    Hello, My question is about whether it is possible to dynamically modify a sprite associated with an object in-game. Say I've got an object like the beanstalk in mario bros. It is made up of two different sprites: L R The length of the stalk depends on how far the...
  17. Z

    Game Mechanics Top down movement with different tile heights?

    Can anyone explain a good approach to designing a top down movement system where the player can jump up and down from map tiles of different heights? It doesn't have to be full 3D mechanics (i.e. multiple platforms above each other), just one map surface with varying height. I can imagine that...
  18. R

    If you create surfaces longer than the application surface and your view[SOLVED]

    Hey, so i'm stuck on this for days and I think it's also because I ask the wrong questions, but let try this one more time with different questions so here I go... 1) Application surface has a height of 270px (your standard surface) 2)I make my own surface and put a list of 26sprites in it one...
  19. I

    view stops following object after room limit

    I'm changing the room width in-game, and thus, the view does not follow the object after the original width (it slows down allowing the object to move outside of the view boundary) example : original room_width = 1440, when I run the game and move right, the room width is increased, but when i...