• 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. Wendell

    GML needing help with a script

    Hey guys, so, I'm trying to make a script which basically creates objects on a random position within a determined region of the room. The script I call with: create_object_at_random_position(amount, object, layer); Where the "amount" is how many instances of the "object" will be created on...
  2. A

    GameMaker [SOLVED] How to store variable in local variable in script

    Hi, My problem is how to use two local variables together. See b.i. ///@arg0 what_grid ///@arg1 what_path ///@arg2 what_circuit ///@arg3 what_stuff var n = 1, i = argument3, v = 0, b = 0; repeat(instance_number(object_index)) { var priq = ds_priority_create(); with(object_index)...
  3. KyleRansford

    GameMaker Getting the Ratio Right

    I'm trying to find a resolution that is in between 320x180 and 640x360. That can scale to 1280x720p and 1920x1080p. For the type of game I'm making the 320x180 is too "close" or "zoomed in" and the 640x360 is too "far." For the time being I found that 426x240 actually looks like it work, but...
  4. M

    Recall script next frame?

    Sup! Cant find if its possible to 'recall' the current script next frame in that script. (within a script, a code that will re-execute the script next frame)
  5. HayManMarc

    GameMaker (SOLVED)Calling math wizards! (help making arc)

    Hey all, Are you ready? MATH CHALLENGE!! Are you excited? I hope you're excited. Actually, I'm hoping someone around here is great with maths and can help me out. I do okay with math, and can usually, eventually find the answer for things that are not too complicated, but this one is...
  6. mafon2

    Legacy GM Is it a legit chase script?

    I'm prototyping Pac-Man clone and wrote simple chase script, but it has 2 strange quirks: 1 - o_enemy don't want to chase o_player, it chases o_levelstart for some reason, though o_levelstart has nothing to do with the script or any object in the project, it used to draw a grid, I had to stick...
  7. TWSICommunity

    GML Has anyone achieved designing a OTP game maker script?

    I've noticed there hasn't been a TOTP or HOTP around in game maker studio before but has anyone really achieved this before? I'm looking at designing a sort of test game where a developer would use a 2FA code to enter in some sort of dev mode. If it's impossible then please let me know, it's...
  8. FoxyOfJungle

    I have found a real boring CRITICAL BUG in GMS2

    Hello, first of all, I'm an advanced user in Game Maker since version 4.3... I'm having a headache with a bug about zip_unzip() (It's not what you are thinking) I am trying to unzip a file that is not in the included files, however there is a bug that in a way that I write the script, it...
  9. M

    GameMaker Execute script with variable

    Hello everyone! I have a small problem in my mobile project. I created a button that should lead to the next level. All the level atributes are saved in scripts: scr_level1 , scr_level2 , scr_level 3 and so on. So in the button I added these lines: // this button is in rm_game //when button is...
  10. D

    GameMaker [Solved] Optional arguments not working correctly

    [GameMaker Studio 2 version 2.2.3.436] I have made a script that uses optional arguments and it keeps giving me an error, Four arguments are supposed to be required, and two more optional. This is really baffling me because I have made other scripts with optional arguments that work perfectly...
  11. F

    Drawing Curves in GMS2

    Hey all, I have searched and searched for some type of script that draws a curve using an x1, x2, y1, y2, and a beginning angle. I saw one for GMS1 posted 9 years ago, however, despite this I tried it (because why not?) but it obviously didn't work. If anyone could offer some sort of script...
  12. J

    How well does GameMaker 2 perform when Games get big?

    I am asking, especially wondering if there are any Resource Limitations, like the overall amount of Scripts, Sprites, Objects, etc. that can be created, if there are limits to Instances in a room or room size in general, or if any of you have any experiences, working on big Projects with lots of...
  13. J

    GameMaker asset_get_index() across platforms

    Very simple and straightforward question: How good does asset_get_index() work across all platforms? (especially when dealing with sprite- and scriptnames) Because I am using it as a very important part in the Engine of the Game I am creating, and I read about problems in HTML5 in combination...
  14. F

    Delaunay Algorithm in a GML Script?

    Hi, I am currently working on making a game that generates rocks such as this one: but, I cannot think of a way to achieve triangles such as that without the Delaunay algorithm. Does anybody have a script that could generate the Delaunay algorithm? If so, please post it here and give an...
  15. J

    GameMaker [SOLVED] Storing large amounts of data inside a script

    So I am creating a quest system. A quest can have a title, a questlog of the storyline and some commands like for example "Find the blue flower". My first Idea was to just create a DS-Grid, with all these Strings in it, which worked but then all this data, which has the potential to get very big...
  16. phillipPbor

    3D instance_create_ext

    i was trouble with finding the script for the instance_create not the instance_create(x,y,obj) you see I was trying to create my oun instance_create_ext(x,y,z,obj) because I having trouble create object in game, I notice there was no z axes function in this. so I went on a quest to find a...
  17. M

    Legacy GM Showing Highscore in the HUD

    Do you know that some arcade games like Rastan Saga and The NewZealand Story show a the highscore in the HUD? Well, I want to do the same thing. How can I do this?
  18. G

    GameMaker How can I change the letterbox color from black with scripts?

    How can I change the black bars on the outside of the screen to any color I want, on the fly?
  19. M

    How to exit a code but not make the object exit the whole Step Event

    In an object's Step Event theres a piece of code. If certain conditions don't meet in this code, i want the object to quit the code, however not the entire Step event - the rest of the Step event outside the code i want to go on as usual. I tried with exit; but that didnt work. Or is it supposed...
  20. D

    Beginner Coding

    I'm new at GML but I enjoy the way coding makes you think, so the first picture the highlighted line works fine. All I want is to right click to destroy crops, I made it so I left click to plant crops and it works out fine. I thought all I had to do was the opposite but I got stuck. I just need...
Top