1. xDGameStudios

    GMS 2.3+ [TEXT TUTORIAL] Keyword "function" & Methods Explained

    GM Version: Studio 2.3+ Target Platform: Windows / All Download: n/a Links: n/a [THEME] Today we will be talking about functions, so this tutorial will be about the function keyword and the method() function. In the in-betweens, I will also talk about binding. What is it and why is it important...
  2. T

    GMS 2.3+ Strange struct variable behavior

    I have seen an strange behavior when declaring variables inside structs. The following code returns the x value of the instance that creates the struct even though it should return an error. I discovered this tracing a bug for a much bigger struct that I'm using and I really don't understand it...
  3. D

    GMS 2.3+ Nesting functions

    Hello, I wonder if this is a bug or not... func_1 = function(){ code } func_2 = function(){ func_1(); code } When I place this in a create event, it calls the func_1 code without me executing func_2.... Is this a bug or is it not allowed to nest functions like this? Im...
  4. Y

    Question - IDE Is it possible to emulate the middle click functionality?

    Hey folks, The mouse I currently use (Logitech MX Anywhere 2) does not have the ability to perform a middle click as input. I am wondering if it is at all possible to emulate the documentation functionality that would otherwise be present when selecting methods in the text editor. Thank you.
  5. M

    GML Get Specific value in Grid with String or Func

    Hello, I started a little bit to discover the Grid since yesterday to learn more and I face a little problem. For the example I have this : Text = ds_grid_create(3, 2); I reduced to the simplest. What I am trying to do, to simplify my task for later, is to access with eg "K1" as a...
  6. HayManMarc

    GML Best practice with varying same objects?

    Hello GMCers! Here's one for the slightly more experienced crowd... I'm making a bunch of different buildings, such as a house, cabin, barn, office 1, office 2, etc. Each will have differing sprites and differing stats (sprites, hit points, etc), but all function basically the same. I...
  7. N

    Adding Methods/script to an object

    [using Game Maker: Studio Professional, v.1.4.1757] Coming from a Java background, I am wondering if there is a way to have "methods" (private script) associated with an object in Game maker studio? This would be extremely useful when using parents/child objects. A basic example to better...
  8. ZeDuval

    Asset - Extension Object.Method *UPDATE*

    UPDATE: v2.0.3; New: Last version included as a rollback-possibility Supports an unlimited amount of methods now, instead of 15 like before Supported number of arguments increased to 20 Object Method enhances the otherwise object-oriented approach of Gamemaker with the possibility to define...
  9. L

    Color gradient on sprite

    Hi there! I've been working recently on a project and it is getting more and more to the final stage. But recently I have noticed that there is a huge impact on my game's speed. But let's explain. To accomplish the gradient in the picture I am blending the sprite for my ground ( using...