• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

script

  1. Gizmo199

    Asset - Scripts Vector Library - A full Vec2/Vec3 Library!

    GITHUB | MARKETPLACE A Vector2 and Vector3 library for Game Maker Studio 2 This is a full vector library for Game Maker Studio 2! This is an ongoing and growing project so keep up-to-date on new updates! Declaration Using them is super easy! just use the 'new' command and choose either a...
  2. pikachurian

    [Solved] Function/Script Executes Twice Help

    I'm making a turn based battle system. I have a battle manager object with a switch state machine. Each state has code that executes for the first frame in that state. The enemies in the battle are stored in an array in the battle manager. During the first frame in the enemy turn state, the...
  3. M

    Error message upon creating executable

    Hi so I'm pretty new to Game Maker and I just finished one of the tutorials. I've been able to create an installer using the zip instead of making an executable. Whenever I try to create an installer I continue to get this message LicenseData: open failed...
  4. Z

    GML MADE A SWORD SWING SCRIPT

    Hello Everyone! I made a swing animation for Melee Attacks BUT it isn't very versatile when it comes to changing direction, I am currently having a hard time making it versatile CREATE VARIABLES melee_state = 0;//Counter Current Anim Number melee_timer = 0;//Animation Timers melee_anims =...
  5. 21Delynx21

    [SOLVED] My Object does not move when I try to use a script instead of using the event manager

    Hi everyone First I made the movement in the event manager for every button itself, but when pressing two buttons at the same time, it went not the way I'd like to. I added the function in the event manager and have no clue why it doesn't work, the object is not moving. I guess I forgot...
  6. T

    [Solved] Argument not able to be set

    Hi everyone, I am having trouble with a script I created that uses functions from csanyk's iMprOVE_WRAP extension. The purpose of the script is to return some traits in an array of the nearest object from the calling instance. I use this so enemies know the location of the player. To get the...
  7. O

    3d Collision method that allows rotation

    So what im looking for is a little complicated to explain, but it feels like it should be pretty easy. ill explain the best i can. Im making a 3d project and i currently have AABB collision implemented and it works great but it feels limiting since nothing can rotate (other than appearance, the...
  8. J

    Why is my string no longer a string?

    I have this string in a variable that just suddenly stops being a string for no reason. So I have this object with a string stored in a variable called path_name. This object spawns new enemy objects and uses the given path name to set the pre-made path the enemies will follow. This failed...
  9. flyinian

    SOLVED Could I just throw a script with the variables I need for an object in its create event and it'll work? Obviously?

    I'm currently using variable definitions but, it doesn't have the functionality that I'd like so, I'm looking for an alternate besides the obvious "write variable in create event per object". Any potential problems I may face doing this method? Thanks.
  10. Rafael Augusto

    Windows Game Maker 2 Resolution and Aspect Ratio

    How best way to make the monitor adapt to the resolution of other monitors pay special attention to the different aspect ratio. It would need to be without loss of quality. It's hard to find a tutorial for the current version desktop game maker 2. It would have to be all the screens in the game...
  11. F

    Alarms inside functions

    Is there any way to set an alarm from inside a function? I want to put some random delay to create an instance from inside a script function, but I couldn't figure out how to.
  12. NikkoTC

    Asset - Scripts GML-Classes - GML script providing OOP features.

    What is it? GML-Classes is a script that provides some OOP functionality that allows you to define classes, their constructor and destructor, and call parent methods in overridden methods. Why does it exist? The main reason is convenience, in particular the convenience of calling parent...
  13. YamboGames

    I can not open a specific script

    Hello! When I try to open one of my scripts, which isn't even particularly large, nothing happens. Doubleclicking it doesnt bring it onto the workspace area, nor rightclicking -> edit helps. The only thing I can do to edit the file is either through the windows explorer, or clicking a function...
  14. Storm1208

    Horizontal and Vertical Collision No Longer Working After Being Converted to Scripts

    I'm working on a finite state machine implementation for a platforming character. I initially coded the character normally (i.e. not using a state machine approach) but am now beginning to convert what I had previously implemented into a state machine format. To aid in readability, each...
  15. Reddoka

    SOLVED Player collision script doesn't work

    I coded it like the tutorial, but maybe of the different version, it's not working. It said that there is an unnecessary expression (-1) used as a statement, but if I remove the (-1) the tiles don't work propably (the _collision doesn't seem to work too). Thanks for helping, I really appreciate...
  16. yukaccino

    Hex-Grid Movement- Issues with Script

    Hello! I'm a newbie with GameMaker and my programming skills are really basic, so I've been following a four years old tutorial series I found- I want to make a Turn Based Strategy game, using a hex-grid to move and attack, pretty similar to Sid Meyer's Civilization. Tutorial I've found: I got...
  17. J

    [SOLVED] Script portativiness - lost ? or i miss something ?

    Everything is in the panel. Feel free to give an astuce about. /* /// the string replacer project _ shared code + structure reconstitution // Hi there, i'm blocked into a bug ? i share my code for looking at it // and talk eventualy about code portativiness. :/ // To the follow, the shared code...
  18. A

    Collision script won't run

    Hey everyone, I'm trying to create a normal state so that I can switch between other states, but to do that I decided I needed to make a normal script which contains a script for player input and collisions. However, when I tried to make a script for the collision block of code I get this...
  19. C

    Inputting Methods Into Scripts

    Hello forums! Long time no see. I have a quick question that I need answered, and I know somebody here can do it for me. The question is: Is it possible to input method variables into script functions? Here's an example of what I'm trying to do, but which doesn't work: // Step Event: Test =...
  20. F

    Hard times with scripts...

    Hello there (and please forgive me for asking something in the wrong thread, if someone can fix that mistake), I hope everyone's doing great these days. I am currently following a Youtube tutorial (you can skip the first half part): Yes, this is the part 2 but I have no issue with the part...
Top