1. Gasil

    GMS 2 device_mouse_x_to_gui question

    Hello, I'm using: xTouch = device_mouse_x_to_gui(0); yTouch = device_mouse_y_to_gui(0); //And also tried: xTouch = device_mouse_x(0); yTouch = device_mouse_y(0); I'm drawing them in draw gui. I then create an APK of the test project. In my cellphone, I put my finger on the screen and the...
  2. Jmarlin3

    Trouble with direction and horizontal speed

    I'm having trouble correctly programming the direction I want one of my objects to move. When Z is pressed, Obj_player_head is supposed to move the direction relative to what obj_player.image_xscale returns (this being 1 or -1). The problem is that while it does move to the right when Z is...
  3. Doggo

    GMS 2 [SOLVED]Custom Controls?

    So, im trying to make a control menu so that you can change your controls. I have a script that checks for a input, then assigns it to a variable. I want to know how I can change the global.keyPressed variable to the keys that I listed, and the one the user pressed, and bring that value to a...
  4. S

    GMS 2 Double List not correctly storing information

    I am trying to save controls and call them back when the game is loaded from an ini file. the controls are set and stored inside the second array correctly, but when accessing them later on, the second array was not set correctly and is just still 0. for instance at global.controlList[0, 5] at...
  5. Guitarmike

    Advice on controls

    Hi, I'm creating a traditional sidescrolling platformer. In addition to the basic WASD movement controls, the character can do a melee attack, a ranged attack, and a "special" attack. Right now I map those to the keypad 1, 2, and 3 keys, respectively. It just doesn't feel right. Any advice...
  6. PrismaticRealms

    Asset - Extension PRVircon: Add virtual on-screen controls using this powerful, professional extension. (NEW!)

    Greetings everyone! My company, Prismatic Realms Inc. and I would like to introduce our 3rd GameMaker Studio 2 extension, just released on the marketplace! It's called PRVircon. This extension will allow you to easily add virtual on-screen controls (joysticks and buttons) to your games for...
  7. JAG

    Mac OSX Controller vibration

    Does anyone know if it's possible to have GMS make a Dualshock 4 or Xbox One gamepad vibrate when connected to a Mac?
  8. B

    Linux Cannot press control + arrow keys

    Hello! I'm experimenting with a Linux build and everything is working fine. Just one question: Has anyone encountered and have any experience with the fact that Linux os doesn't seem to allow pressing and holding the control button at the same with arrow keys? Is this built into the os? I'm...
  9. B

    Linux Keyboard controls don't work in Linux build

    Linux users playing my game DASH can't press two buttons at the same time? It's a platformer (so you press several keys at the same time all the time) and there is no way I am redesigning the controls and mechanics because of this. All my keyboard check code is simply standard gml. Nothing...
  10. R

    GMS 2 Setting up a local multiplayer lobby with 4 different gamepads

    I've been trying to work this out for a while and I just can't seem to get it. What I'm asking is how do you assign a controller to a "player number" when they press A. Example: 4 friends are playing, Friend A pressed A and his controller is now assigned to player 1, Friend B pressed A and his...
  11. S

    Alarm Cancelling

    Hey everyone, so the game I’m trying to make is pretty simple. The player is a ghost and has to possess all of the humans in the room before it can move on. I want it to where the player has to hold down F for 3 seconds while making contact with the human before the human is possessed. Right now...
  12. T

    Camera Control Problem

    I have problems with getting my Camera Control working. I think my movement control code interferes with my Camera Control. :) My movement uses W, S, D and A to move around and shift to walk faster. if(keyboard_check(ord("D")) && place_free(x + collisionSpeed, y)) { x +=walkSpeed...
  13. C

    GMS 2 Gamepad Input ?

    I'm using the settings tutorial from this vid, I followed the entire tutorial step by step and did everything correctly and was pretty pleased with my work. However I wanted to add an extra notch to the project, so i decided to add Gamepad support to the game. But here's the deal though there...
  14. S

    Legacy GM Local Coop Control help

    Hey there, I am fairly new and grinding through prototyping different systems. Right now, I am working on a 2 player local multiplayer game and want to set up so that Player 1 uses set keys from Player 2 on the keyboard to move about. I have the 2 players moving separately but using separate...
  15. S

    Can I register multi-button gamepad inputs?

    Hello! I've just come back to GameMaker 1.4 after a few months' hiatus brainstorming ideas for a new project. After finally coming up with something, I decided that I'd use gamepad inputs for all the controls in the game. However, my design requires that I register multiple inputs to do one...
  16. Shanobi

    Trying to find a GMS2 Contra controls tutorial

    Anybody out there know if there is one? Either for DnD, or code. I'm trying to figure out how to switch my animations with multiple button presses, and am having a bit of trouble doing it on my own. Thanks in advance!
  17. H

    Newbie looking for some help with mouse controls

    Apologies if anyone has already seen me post on reddit but slow replies i figured id try here. To give some background i'm currently using offset_x = 100; if(mouse_check_button(mb_left) and (mouse_x >640)){ phy_position_x = mouse_x + offset_x; phy_position_y = mouse_y; }...
  18. Luke Pierson

    Mouse Swipe Controls

    Hey, so I'm designing a mobile app, and since I can't test gestures on my pc, I want to code it to mouse controls. Got a single room with a view that covers a third of the room. Thus, the room is segmented into three parts. They are the home, shop and social pages. The home page is center, shop...
  19. Pfap

    variables holding programs

    [SOLVED] Hello, is it possible for variables to hold programs? I'm trying to use the choose function like this: choose( control1, control2, control3) in the create event I set up the variables: control1 = { if keyboard_check(vk_up){ y -= 3} (rest of keyboard inputs) } control2 = It's not...
  20. B

    How to make variables carry over?

    I am starting to use custom variables. I just made a new variable and made it global. I went into a different object to use the variable so that when it increases in value it changes the arrow controls to WASD, but the error code says that it is not set! I'm so lost when it comes to these...