gml 2.3

  1. S

    Beginner collision problem

    Hello, I have created a collision tile map, but the code below had a weird quirk where the player object will jump through a barrier to the right or repeatedly skip backwards when colliding to the left. This only happens when the barrier is placed in particular spots in the room. The issue I...
  2. S

    My first open world: How do I draw tiles outside a room?

    Hello wonderful people! I've decided I want to try making my 16bit Top Down 2.5D game infinitely open world, to see how possible it is. I understand there will be complications and world gen will require constant manipulation, but I wanted to see if I can cope with it, and just how possible it...
  3. xDGameStudios

    Asset - Scripts [CAMERA] xCamera is a task based camera asset (FREE)

    [LINKS] xCamera (marketplace) xCamera (itch.io) [DEMO GIF] [INFORMATION] This is a task based & modular 2D Camera controlling asset pack for GMS2.3+. [SETUP] In order to use the camera system first you need to setup the view/camera as normal in the IDE using the room settings (or through...
  4. xDGameStudios

    [TEXT TUTORIAL] Keyword "static" Explained (Part 2 : Execution Order)

    GM Version: Studio 2.3+ Target Platform: Windows / All Download: n/a Links: n/a [PROBLEM] Today we will be talking about static variables initialization order... now you might ask: [EXPLANATION] So static keyword again! If you don't know what it is you should first take a look at my first...
  5. S

    SOLVED I can't seem to be able to remove part of a surface...

    gpu_set_blendmode(bm_subtract); if room == rm_village { draw_rectangle_color(3434,3520,3551,3567,c_white,c_white,c_white,c_white,0); } Hello. I'm drawing to a surface (ingame water reflection) which reflects instances onto the surface. There's certain pixels I don't want to be reflective...
  6. Evan Kinsler

    How to execute code you'd find in a Draw_GUI event in a collision event?

    The title pretty much speaks for itself. The following code is from a Draw_GUI event. testText = "* There is a splatter of blood on the ground."; draw_sprite(spr_dialogue_box_REG, 0, 31, 320); draw_text(60, 342, string_wrap(testText, 500)); draw_set_font(dtm_mono); The following code draws a...
  7. Evan Kinsler

    How can I change the SPACING of wrapped text in a draw GUI event?

    So I was on the Gamemaker Discord with the support of a user named 'tfg' and a tutorial by FriendlyCosmonaut on YouTube, I am in the process of making a textbox mechanism similar to UNDERTALE's. It draws the textbox itself, it draws the text, along with its desired font, and it even wraps the...
  8. S

    Is there a way to remove vertex_position_3d() from a buffer?

    I'm using vertex buffers to draw grass sprites around the room, and I want to be able to remove triangle positions for specific grass sprites, effectively removing specific grass sprites form the room. This data is held in a "vertex_buffer" so I'm trying to find a way around removing vertex...
  9. S

    SOLVED Way to use Variables(Strings) in Struct Pathing?

    Hello All, I am hoping this to be a very easy question that I may have overlooked in the manual, but I can't seem to find the answer. The title may be a little confusing so let me break it down. Lets say I create this struct: var stats = { stat0 : 23 stat1 : 24 } Keeping it basic...
  10. S

    Game slowing down when moving around the room, slowly returns to normal after staying still

    Hello guys, I'll try to explain my scenario. I've been working on a game with a room that's 4000 by 4000. I don't know if that room size is overkill or not but I guess I'm trying to see what limits I can push with my game. I modified an asset that fills the room with grass vertex buffers...
  11. Evan Kinsler

    GML How do you reference the next room in the Room Manager's room order?

    The term pretty much explains itself. In this example, how would you reference rLevel3 in an alternate way than naming the room later on in programming? Consistantly naming and naming and naming rooms will waste valuable time in my perspective.
  12. H

    [Solved] Can extensions written in GML return GML struct's?

    Let's say I have a struct defined in GML as: function special_compiler(expression) constructor { compilerError = undefined; ... static run = function(params) {...} static compile = function(expression) {...} if (!is_undefined(expression) && expression != "")...
  13. S

    SOLVED Can shaders affect an instance's x and y? (instance_place and instance_destroy not working)

    Solution is in my final response to this thread. I''m working with this Wind Grass shader: https://marketplace.yoyogames.com/assets/6030/depth-based-grass-with-wind GMS2.3.1 I had another thread about this asset although this time a different issue. It seem the x and y of each instance...
  14. William Garrison

    9slice not working quite right?

    Im sure it's not exactly 9 slice that is the issue but something in my equation or setup that is causing the issue. Problem is I have stared at this for so long I cant see whats wrong. Okay so the issue... The 9slice is drawing exactly as it should....sort of. It draws the box right is the box...
  15. Z

    SOLVED Multiple Jumping Animations

    Hello there fellow programmers, I have a problem concerning the code that affects the jumping animation of my player in a 2D Platformer. What I want to happen is when the jump button is pressed and the player is on ground I want spr_Player_Jump to play once. Then when the player is the air...
  16. xDGameStudios

    Asset - Scripts [BUFFERS] xBufferFunctions is a collection of advanced buffer functions (FREE)

    [LINKS] https://marketplace.yoyogames.com/assets/9587/xbufferfunctions https://xdstudios.itch.io/xbufferfunctions [INFORMATION] This asset is composed by a set of buffer functions that allow for complex buffer parsing. Functions allow to seek and match patterns, copy regions (using read...
  17. K

    Can't delete sequences

    I have two sequences that I create when I press the right button of the mouse in an object, right after that, I create an object, and I tried to make that when I click in it, I delete the sequences, but for some reason they just don't delete. Code below in my step event...
  18. xDGameStudios

    [TEXT TUTORIAL] Keyword "static" Explained (Part 1 : The Basics)

    GM Version: Studio 2.3+ Target Platform: Windows / All Download: n/a Links: n/a [PROBLEM] What is static? what is its purpose? and how can I take advantage of it? [EXPLANATION] There is no quick answer for this, as static will have different use-cases depending on the context. However two...
  19. M

    Help: Stacking different size objects on top of each other with priority inside the stack

    Hello all! First post, but I've been toying around for a bit and getting used to the ropes of GML. I'm still pretty new, but I learn quick! I'm trying to accomplish stacking multiple objects on top of one another in the game window, while at the same time giving priority to some objects to be...
  20. L

    Moving a sequence around a room

    Hi. I'm pretty inexperienced in making games, and I've run into a problem that I can't find much information on. I want to use a sequence as a HUD element, and this would require having the sequence move with the game camera. I have read through the manual entries regarding sequences (here...
Top