script

  1. zendraw

    Lost assets retrival

    i deleted a script now how to get it back? does game maker 2 has any backup folder or somthing???
  2. S

    GML How to put piece of code in a variable or argument?

    Hello, I am trying to put some code into an argument of a script how can I do it? This is how I want to call the script: change_script(1, 2, global.military_point = global.military_point + 3, global.economic_point = global.economic_point + 3); This is inside of the script: var unique_id =...
  3. FoxyOfJungle

    GMS 2 I have found a way to HACK HMAC hash Encryption

    I was recently looking at a safe way to be able to save the file without a regular user being able to modify the gamedata. So I made a system that works as follows to save the game safely: 1 - Save variables in a "ds_map" 2 - Save ds_map as JSON 3 - Save the JSON string to a buffer with byte...
  4. FoxyOfJungle

    SOLVED Stop running a part of the step event?

    Hi, I'm making a Clock and in some part I need to "stop" executing a part of the code, note below, every dn_phase == "anything", I need to execute what is inside only once, because the "clock_bg_fade_alpha" needs to be at "1" only once. I've tried using boolean, but I couldn't do it efficiently...
  5. RedKnight91

    Question - Code Mismatching script indices

    Hi, I'm looking into Game Maker Extensions. I've made a few assets so far but I've never turned them into an extension before, so I want to up my game. I got familiar with the whole procedure, but right now I'm hitting a weird behavior.Here is my setup: * I have a project with ~98 scripts in...
  6. Christopher A. Orestis

    Not collision with var = Do something...

    Hello, I would like to know how do the following: (This script is not working, would like to know how to fix this) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// var...
  7. FoxyOfJungle

    GML [Solved] ds_maps: How to save/load the room with instances?

    I am making a customizable game where the player will have to build a mall. How do I save all instances of 2 different objects and also save global variables such as score and others (All in the same ds_map)? I need everything to be saved in a ds_map and then use ds_map_write () Save/Load Code...
  8. sinigrimi

    GMS 2 [solved]removal from instance_create script if the object was destroyed

    Hello! When I enter the room, it reproduces the blocks, but when I move to the next and return to the first, nothing is reproduced in it :( p.s .: rooms are not from GM but are generated in the same GM Room after moving outside the camera. I would also like to know if I can mark these objects...
  9. sinigrimi

    still have questions about ds_list(I'm sorry that there are a lot of questions, I'm really a noob)

    but I have very, very many lines with creating objects. how can I effectively add them to ds_list. or maybe there are other options? I have a script in which there is the following: in the controller the following: in the scripts are switch systems in which everything is indicated in a...
  10. sinigrimi

    GMS 2 [solved]One more question

    This is a create event and when I run the compiler it says that room_type is not set. also if I directly insert a digit into the argument field, the code works. var room_type =5;//irandom(559); case"fixed": // if (up == true) and (bottom == false) and (left ==false) and...
  11. S

    [Solved] Help. I need help with a script.

    Help! I need to get a script done by tonight. I'm in a school club where I have to make a video game. Well, anyway. I have to have 3 levels on my game. It's a game where to click on objects that fall from the sky and you get points. (Stored in a variable name your_score) So, I tried to make a...
  12. sinigrimi

    GMS 2 The script does not always work [SOLVED]

    Sorry to bother you again, but GML torments me. This time, the script does not always work for me, which should always work if I understand the mechanics correctly. I specifically shot a video (it is below), code is bellow too. Short description, when I go into the room, "Room" = false" is...
  13. LunarTaqq

    Windows Every time I reload my project get this error >:(

    I am using the HeartBeast Movement Engine for the platformer project that I'm working on, and it works really well, but every time I save and reload the project, this error pops up. All of the scripts included in the engine somehow go missing, and have to be added again. Every. Single. Time...
  14. 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...
  15. A

    GMS 2 [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)...
  16. KyleRansford

    GMS 2 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...
  17. maxdax5

    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)
  18. HayManMarc

    GMS 2 (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...
  19. 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...
  20. 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...
Top