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

key

  1. B

    Accept Input for ".';/,[]\=-` Tab CapsLock Shift" & More?

    I'm making a virtual keyboard, this will be used to make learning Touch Typing Easier for people, Game Maker cannot recognize the keys that I underlined with red in the photo above. Is there a way to make it recognize any of these key inputs, so that I can change sprites when the key is pressed...
  2. Architheutis

    Simple Weapon-Aiming and Shots

    Hi Folks, I`m an interested beginner in programming and using GMS2. I´ve already seen different YT-Tutorials, f.e. making a Jump`N`Run game. I can follow all codes and steps. But I hang up on a simple weapon behaviour. Maybe there is somebody can gimme a hint!? I have a fully functional...
  3. Dr_Nomz

    Legacy GM Any Key or Step?

    For something like checking when I press the move key or whatever, for example. Also WHY is there no detailed information about Any Key in the Manuel? That's really annoying guys. (STEP has a document...)
  4. Pfap

    iOS How to check if the return key has been pressed?

    I have been playing around with the new virtual keyboard functions with ios and have noticed a few issues. I have an object that brings up the keyboard in the first room of my tests. It wasn't bringing the keyboard up, but there was some strange flicker in the default Gms2 splash screen, so I...
  5. T

    Game Maker Studio 2 Desktop lost my license

    Hello! I have in issue. For the one year we worked on the project. An dyesterday suddenly my Game Make 2 IDE began to say me I have only Trial version and can't open any of my projects. I have tried to recover my License Key via YoYoGames site but don't know where should I enter it. We can't...
  6. S

    GameMaker Help with holding keys

    I want to hold x to hold out you shield but if you press shift then it will switch weapon to sword. The problem is that holding x and pressing shift at the same time glitches the shield. The sprite is stuck on holding the shield but u have the effects of not holding it out. It fixes it self if...
  7. B

    Objects

    I have an object with lots of costumes that rotate every 1 second, I don't want this. I want a piece of code that when key a is pressed (or something like that) it changes costume. So it doesn't rotate every 1 second
  8. H

    Legacy GM Translating key value to string

    Hello! I am trying to translate a pressed key value (say, '72' which is the value for the 'H' key) to a string, but I can't get it to work. Any ideas?
  9. Ronchon

    Legacy GM Hashing a datastructure

    Hi, I would like to generate a "hash" out of datastructures such as ds_grids that would allow to quickly compare 2 different grids to know if they hold the same values, for example. Comparing each tile's values is too slow, and too problematic if the values are of different types. How would you...
  10. C

    'D' key is always being registered as pressed when it isn't

    I just started a brand new project, and this movement code is super simple and I have used it for many games in the past. I just started using GM again after some years but in my mind I don't think there's anything wrong with this code. The up and down directions work fine, but the player is...
  11. L

    Encrypt String With Key Script

    I want to duplicate https://www.braingle.com/brainteasers/codes/keyword.php. I want to make an encryption script that encrypts a string of text using a key. I tried this but it doesn't work. I can't figure out why. Could someone help me? What I want to do is say, if the key is "key", make...
  12. P

    [SOLVED] Key pressed if window is not in focus (not active)

    Hi, this is my first post on the forum. I'm moving my first steps in the GameMaker world, and through Drag and Drop I created a simple counter with three keypad keys: "+" to add, "-" to subtract, "0" to reset. Everything works well, but I would like it to work even when the counter window is not...
  13. X

    [Solved] ds_map_find(map, key); Could you please implement this function in GM? Pleeeeease?

    Okay, so some might know my story about ds_maps and networking... essentially, I needed to check for key names, not their values, the names of the keys themselves, in a ds_map. Now... to get values of keys, you can just do "ds_map_find_value", but, if you wanted to find/idenfity a specific key...
  14. S

    Legacy GM [SOLVED] "unable to download rss file to begin download of missing modules!"

    I tried installing the current early access version of GMS1, and I get this error every time I try to run it after installation: What am I supposed to do to get it working? The module drop down is acting like I'm using the free version, even though I have master collection and tried entering...
  15. A

    Npcs that give missions

    I'm wanting to have multiple npcs which will give multiple different "missions" so to speak. Basically all I need is for the npc to say that said mission's dialouge then give a key and player can do what needs to be done. When they come back I want them to be rewarded and to have the next...
  16. P

    How to avoid input being pressed for x seconds

    Hello, is there a way to disable an input (BUT NOT ITS ACTIONS!) for x seconds or under some circumstances ?
  17. M

    A "Key" Code

    Hi GameMakers! It's me again and I need your help again! This time i was doing a key like in dungeon crawlers to train my creativyty in programming (yes, that was my self-made project) And i got an error that says: "Wrong number of arguments in a function or script" in...
  18. W

    Animation Aim with Arrow keys

    Hey guys, I'm an artist trying to get some controls worked out so I can work on game animations. I am wondering how I could change animations with the up or down arrow buttons. A type of index perhaps? when you press up his aim animation will angled, press up again even more angled, and 3rd...
  19. R

    Legacy GM Can one argument get the value of another argument?

    So I tried asking this yesterday but maybe I wasn't efficiënt in explaining it. ///scr_rectangle_position(key_kind,position); position = argument1; if(mouse_check_button_pressed(mb_left) &&...
  20. C

    [SOLVED] Switch to toggle other object

    Hi there fellow coders, I am totally new to GameMaker but not to programming in general, so please point me to a ressource of knowledge, if my question turns out to be pointless :p I am trying to accomplish the following: a) define a toggle object (here called obj_dice) b) define a background...
Top