• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

gml

  1. Armored Dragon

    Smooth camera zoom-out.

    Right now i'm trying to make a Spore-like mini game to pratice some things and... i'm stuck. I need a câmera system that follows the player and zoom out each time player grows up. I have this: ------------------------------------------------------------------------...
  2. samspade

    GMS 2 Updating The Coding Fundamentals in GML Series to 2.3!

    I'm starting my update for Coding Fundamentals in GML. If anyone has feedback on what needs to be updated, feel free to let me know! Whether your like helping or just have videos you want me to make thanks in advance. I'm noting three types of videos. 1) Videos that expand upon a previous...
  3. DarthTenebris

    GMS 2.3+ Struct

    Hello everybody, I recently got to try out the new features, and the new structs made me think a bit. I have a script called EngineUI, which I intend to house all the GUI elements I'm going to make programatically. Previously, I made an object for every button I added. With the new structs, I...
  4. xDGameStudios

    GMS 2.3+ Sequences that partially loop themselves

    Hi everybody! I have a question: "is there a clean elegant way to make a sequence partially loop itself?" What do I mean by that?! Take the above image as an example. I have a timeline that will make a sprite move the Broadcast Message "loop" is where the loop should start. In other words...
  5. netoxinaa

    SOLVED Struct not set before reading it

    Hello, I'm new to structs and I came up with this idea of using them for every Menu I have in my game, so each struct menu handles his own variables, text, keys, positioning, etc. In a create event I declared 2 structs, itemMenu and itemOptionMenu. Both of them have almost the same variables...
  6. W

    Destroying a specific instance

    Back for more help. I'm trying to destroy a specific instance, here's the info; There could be many instances of an object. I want to click on one of the objects to bring up a menu. If you click on a destroy button on that menu, you would destroy the instance of the object that was...
  7. B

    GMS 2.3+ Weird Sprite Spawns

    Random Sprites Spawn during my game like those gradients and the main character space ships i have no clue how to fix this, Evan when searched the sprites are used in any code, just background use only.
  8. B

    GML Resetting Score

    When my game sends you back to start menu the score stays the same flying thought levels. What command do i reset it with?
  9. Papa Doge

    SOLVED Simple light effect

    I'm attempting to add a simple light effect to my game where certain objects have a light radius around them when the world is dark. I have the surface drawing correctly with the dark overlay but my light punch outs don't seem to be working. I've create an object called obj_lighting_render to...
  10. kpenrose92

    why is tilemap_get_at_pixel returning different values for same tile index?

    Hello. Tiles in my room with index 1 return 1 when i call tilemap_get_at_pixel at their location, but some of tiles with the same index return 1073741825. Can anyone explain this to me?
  11. MoonShroom

    Calling another struct within a struct constructor

    Hi all, I am currently trying to initialize a struct inside of a struct constructor, like so: /// @function Rectangle(X, Y, Width, Height) /// @param {real} X /// @param {real} Y /// @param {real} Width /// @param {real} Height /// @desc Stores a set of four reals that represent the location...
  12. E

    GMS 2.3+ Mp Not Moving

    I have a controller obj that creates a grid: and a "Zombie" that creates a path and follows it along the grid: I don't know why, but my zombies will not move toward the oTarget.
  13. S

    GML Calculating a non-axis aligned bounce/reflection vector for collision resolution

    Non-axis aligned 2D reflection vector GM Version: 2.3 (demo is for 2.3 but the concept would work in any version) Target Platform: All Download: A link to the freely available source code and project is available here: Links: Tutorial Video and Github link Summary This video tutorial builds...
  14. KyleRansford

    GMS 2.3+ Getting: FAILED: Run Program Complete on a Project that worked on Earlier Versions

    I've installed GMS2 2.3.0 on another PC and on a project that does work in the previous version on GMS2, I keep getting the "FAILED: Run Program Complete" message. I look through the log and don't see anything that looks like an error message relating to code, but I see this long line that I...
  15. S

    GML How i can create and save a variable for every Instances of an objects in one room?

    Hello all. I were thinking about creating and saving (in hdd or etc) a variable for every instance of an object in one room. i have thought about using of id or instance_id but i couldn't make it working. So how i can create and save a variable for every Instances of an objects in one room? For...
  16. V

    GML Find precise collision point on specific fixture

    I created an instanza that contains 3 different fixtures (GM's integrated physics is enabled). In the collision event with an "obj_Wall", how can I check with which fixture collide, and get the collision coordinates with the specific fixture?
  17. V

    GMS 2.3+ GM Physics problem

    I am trying for the first time to use GM's integrated physics (I use version 2.3). I wanted to create a simple pogo stick. I created 2 objects: - One representing the stick, to which I assigned a "Restituition" = 0. This way I set the stick not to bounce if it collides with the terrain. - A...
  18. Armored Dragon

    Thrown object to stop in the air?

    Right now i'm trying to create an enemy that throws a stone orb at player's direction and then walk to the orb on the ground to recover it. The problem is that i can't find a way for this orb to lose speed and eventually stops. This is the code that the enemy uses to throw the orb...
  19. P

    GML Correctly loading rooms from a save file

    So I am new to Game Maker Studio 2 and have had little experience with coding I was using ds_maps and ds_lists to save the information of my game but whenever I save the room data then go to a different room and load the save the character object spawns on the right of the screen. He will always...
  20. S

    SOLVED Any way to get sound length?

    Is there any way to get the length of a sound, perhaps measured in steps? I don't see any existing scripts that do that
Top