gml 2.3

  1. S

    GMS 2.3+ 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...
  2. 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...
  3. S

    GMS 2.3+ 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...
  4. 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.
  5. Hieran_Del8

    GMS 2.3+ [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 != "")...
  6. 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...
  7. William Garrison

    GMS 2.3+ 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...
  8. 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...
  9. xDGameStudios

    Asset - Scripts [BUFFERS] xBufferFunctions is a collection of advanced buffer functions.

    [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...
  10. 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...
  11. xDGameStudios

    GML [TEXT TUTORIAL] Keyword "static" Explained

    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...
  12. MercyGRID

    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...
  13. L

    GMS 2.3+ 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...
  14. netoxinaa

    GMS 2.3+ Getting the name of a constructor

    Hello. I'm having a little issue trying to compare an item object with its constructor. I have this constructor function called Cellphone and my player has in its inventory an object made from that constructor. So what I want is to check if the player has in its inventory the item Cellphone. So...
  15. W

    Choosing a random value from an enum

    How do I do it? I'm trying to pick a random value from an enum for an object at the creation of that object. Do I have to set that enum's value in the create event (to zero) and then make it random in a step event? Or can I set that random value right away in the create event. And, what...
  16. M

    Issue with menu

    hey, im having issue with my menu for some reason the code below interferes with my title code and keeps overwriting it and i cant see why maybe fresh eyes can help //create menu_x = room_width/2; menu_y = y; button_h = 24; button_w = 256; button_padding = 8; // buttons button[0] = "New...
  17. G

    what's wrong with my daily reward system?

    hello everyone!! so, i tried to make a daily reward system where if the gets 1000000 points daily once a day when the game starts and notice the day changed here is my code in load game script: function scr_loadgame(){ if (file_exists("User.sav")) { ini_open("User.sav") global.date =...
  18. Evan Kinsler

    GMS 2.3+ (State Machine) Am I in the right direction with this?

    So today I tried to make a navigatable menu using only knowledge I have gathered from state machines and enums. At the moment nothing shows up. This is what I have inserted into the room... just these 4 things. And here is the code I have for a parent object that I have made for each of the 4...
  19. J

    A Space Rocks Issue -- incorrect bullet angle

    I'm using GML on GameMaker Studio 2 IDE v2.3.0.529 I apologize if this issue has been discussed elsewhere, but after prowling forums and Google and YouTube, I still cannot find a satisfactory answer to explain why the bullets will not shoot straight out of the end of my ship while it's in...
  20. NTiger7

    GMS 2.3+ [SOLVED] Scroller won't work to change items in a shop

    IDE v. 2.3.0.529 and runtime v 2.3.0.401 So I'm trying make a shop for my game where the player presses the "w" key in the trigger area and then the shop opens up. It can display 3 items at a time and if there are more than 3 items then there is a scroller that will change the items that are...
Top