• 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!

scripts

  1. Fixer90

    Legacy GM Refering to an object depending on the number on the end of the name of the object? (SOLVED)

    I'm making a script function that will create an object (at coordinates 0, 0) called "obj_event_0", but I also have "obj_event_1" and "obj_event_2" and so on. I want to be able to input only a number in my function's argument whenever I use it; a number corresponding to the number at the end of...
  2. SilbinaryWolf

    Asset - Scripts [FREE] HMAC Scripts

    HMAC for Game Maker Language A couple of scripts related to creating a HMAC (hash-based message authentication code). Wikipedia Explaination: https://en.wikipedia.org/wiki/HMAC Scripts Included buffer_hmac_sha1(buffer, offset, length, key) buffer_hmac_md5(buffer, offset, length, key)...
  3. Gasil

    [Help] Tile collision and movement system.

    Hello everyone, I'm glad to be here, learning at last the ways of game making. It didn't pass much time before I got myself stuck in something I can't understand, could you help me please? I have a movement system which I almost understand for the most part (I used tutorials and such, so I...
  4. kingsushi001

    Legacy GM [SOLVED] Using argument0 to create ds_grid id

    Hi everyone I seem to be having a problem with the following. This is my script: ///map_grid(grid_name,map_width,map_height) map_width=argument1; map_height=argument2; argument0=ds_grid_create(map_width,map_height); for (h=0; h<map_height; h++) { for (w=0; w<map_width; w++) {...
  5. V

    Legacy GM Scripts code removes by itself

    I've tested my game just when I've loaded the project for the first time today and... my character don't make the movements of the script assigned for the action. And when I've checked the script... nothing!!! 80 lines of code removed... and in 6 more scripts that makes the same but for other...
  6. D

    GML [Help] Textbox_yes_no How to implement

    Hello guys been doing a lot of code experimenting and Google Searching , Still can't achieve the result i wanted , So if any of those Pro's out there been done this before i need help. Maybe a lot of you guys knows how textboxes works in RPG Games , they display texts and sometimes there are...
  7. C

    Windows Add Existing script from Libary is grey

    When i right click on "scripts", the "Add Existing" and "Add Existing from Libary" is greyed out. I don't know what is wrong. I already restartet everything and it is still there.
  8. P

    GameMaker Loading External Scripts

    I know at the moment loading external scripts is impossible as that means compiling scripts during runtime so I was wondering if it is possible to pre-compile a script and then import it during runtime. Or is this not how it works? I'm just looking for a solution that isn't making a pseudo...
  9. R

    Legacy GM A little help with variable control in scripts?

    Hi again everyone! I was wondering if anyone had any advice for how to control / access variables from within a 'with' construction that exists inside a script. For example, the script I have included below should (in theory) simulate 'hearing' by an enemy object; if a 'noise' is made at...
  10. M

    I have a problem with GameMaker Studio 2 Creator Edition and the Trial Edition

    Hi, I need help on GameMaker Studio 2 Creator Edition. There is a problem with the Trial edition where the resources has the limits so that you cannot create more than 10 scripts which is a big problem for me, because it is really important for me to have the access to the unlimited amount...
  11. P

    script works when its not a script but doesnt when it is a script

    Hey guys facing a pretty stupid problem, sorry im quite new to gamemaker So my code works when it is in my step event: but when i copied and pasted it into scr_create_prox_menu, and replaced all the obj_proximity_test with argument0 and all the prox_MENU with argument1, and put it back into my...
  12. B

    How to advance from one script to the next?

    Hello, I'm working on a visual novel engine. The game has an array of strings that display one at a time for the first scene. What I want to do next is, when the text in one array has all been read, advance the script containing the strings to the next script. The purpose for this is to better...
  13. A

    GameMaker Step Event to Script and back?

    Howdy, Recently I tried to divide all my "player" step event code into scripts. However, this affected my player grav, vsp, and jumpspeed in ways that I couldn't fix by merely adjusting the numbers (very fast ascent/ impossibly slow descent). I then put the normal running and jumping code...
  14. S

    Sprite Index not assigning properly while using scripts

    Inside my player create event, I have the following: playerUp = spr_player_up; playerUpRight = spr_player_up_right; playerRight = spr_player_right; playerDownRight = spr_player_down_right; playerDown = spr_player_down; playerDownLeft = spr_player_down_left; playerLeft = spr_player_left...
  15. E

    If and Scripts

    Hello, I am new to the Gamemaker studio 1 , so the question might seem to be quiet silly but how do you write ( if the script was executed) in GML. for example I want code if ( script was executed ) instance_create
  16. A

    GameMaker Recover Recently Deleted Scripts??

    ACK! I don't get any "are you sure" dialog when deleting scripts... I JUST NOW accidentally deleted two very important scripts that i hadn't backed up. (they had the same name as the timelines they control, and i was renaming things. I went to look for them in explorer and recycle bin...
  17. A

    GML majority of player code I scripts?

    Hi I think I may have gone a bit off course here.. With the intent to streamline and efficientized, organize, I've got ALL of my players relevant code being called from scripts... I've come into a few issues here and there... Is this generally a good way to code in GML? ANY pros and cons...
  18. Daniel Mallett

    Question - Code arguments in scripts

    I'm having trouble passing arguments to scripts. I get the following error:- Object: obj_grid Event: Step at line 74 : function "spt_reorder" expects 7 arguments, 6 provided However if I remove the code in bold I.E both the send and receive argument it's fine. spt_reorder(x,y,x +...
  19. G

    Legacy GM [Solved] State machine executes every script.

    Hello guys, I'm new here, this is not my native language so excuse me if I mess up with some words I've a really annoying problem, when I try to use a state machine it executes every script of every case, even if the variable is different. The thing is that as you can see if for example...
  20. R

    GameMaker Loading in a formatted Text File

    I am trying to load in a formatted(layouts, bold, italics, headings, etc) text file in game maker 2 So far I cannot find anything to do this online and nothing built in.I am thinking I am going to need to write a script to parse the text with escape character. Does anyone else have any...
Top