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

control

  1. M

    GameMaker Question regarding moving left / right in editor

    Hey guys, I have taken a break from GM2 for about 6 months or so. Inside the editor the room cannot be moved left/right as you can move windows in a workspace. If I remember correctly by holding down middle mouse button you could move the scene around. Now that just moves up down. Help, this...
  2. Rafael Augusto

    Windows Config control tip

    I made the controls but will I need to make 3 "ifs"? Is there any way to do this with a single if? Because for the gamepad it is a different command and for digits and letters it is another code! if keyboard_check(ord(global.shot)) { hspeed = -5; } if keyboard_check(global.shot) {...
  3. Rafael Augusto

    Windows "Input 5" - get pressed key of any device

    There are few examples of the "input 5" extension for controls on the internet. I would like to know how to get the name and functionality of the pressed key and button. For Mouse, Keyboard and Gamepad. How do I code? Is it necessary to specify the device? global.control1 =...
  4. F

    SOLVED Problem with mouse control

    Good Day I made a space shooter yesterday. You can control it with the help of the point_direction function. (The ship follows the mouse cursor). It works almost flawlessly. The problem is, when I move the mouse cursor all the way up to the last pixel of the screen, the ship starts to freeze...
  5. L

    Idle animation in 4 directions with no gamepad axes involved

    Hi, i'm deep newbie in game making stuff, and i need help in solving my issue: I need to change my walk sprite animation, when releasing gamepad stick, to idle animation, but in right direction (top down view) For now, it's works fine with keyboard control, but when releasing any axis in...
  6. B

    HTML5 Problem with Web Exports and window focus.

    I don't know how to explain it exactly. But I have a problem when I upload my web exports to places like Itch.io What happens is, after the game first loads, sometimes you can't play/control it until after you refresh the page. Also if you click outside the game window, clicking inside the game...
  7. М

    GameMaker Need help setting up player management

    How to make a character move independently (after pressing a button), and I use only buttons to change its horizontal and vertical directions? Help me please :)
  8. A

    Legacy GM Trying to switch between control of three objects

    I'm able to control both the first and third character using a variable called global.character = [number] in obj_control but not the second character for whatever reason I thought at first it was because global character is strictly a binary statement but i can successfully switch between 1 and 3
  9. R

    GML Change character control when colliding with an invisible object

    Hey! I´ve been having a headache meanwhile i was trying to resolve the code to do this: the videogame am making is told in the view of the three principal characters, despite the lineal story. I cant make the player object change their sprites (because they have a lot) and also, the mecanics...
  10. tagwolf

    True Perfect Platformer Controls (input buffer, air control, diagonal collision, etc)

    GM Version: Studio 2 Target Platform: Windows Download: see code below Links: NA Summary: I've noticed pretty much no platformer tutorials account for tweaking control feel, input buffering, air control, etc. So I'm tossing it here hoping it will be of help to someone. Features: * Move...
  11. 2

    Asset - Service Does Publisher Choose when Products Go On Sale or Yoyo?

    As a publisher to the Marketplace do you control when your products go on sale, or just the sale price?
  12. Architheutis

    Controlling emitter

    Hi developers. :) I recently solved the problem with playing sounds, coming from enemies = sound direction, where and how distant the enemy is from the player. Now I want the same effect with moving enemies. For example: I created a patrolling knight with rusty amour. That makes sounds with...
  13. 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...
  14. T

    GameMaker On display "controler" to move player

    Hi, I am not sure what is the correct name, for what I am looking for. :rolleyes: You might all know this controls on a device (smartphone) that you can use on screen to move the player around (up,down,left,right) with your thumb. I am looking for a way (or an extension if such exists) to...
  15. N

    Legacy GM problems with keyboard_key_press and release

    I like to use game maker to make personal helpful programs besides games. Me and a friend wanted to make a solution for playing local coop games online using networking and forced key presses. I understand this may not be the original intent for these functions, but after making some progress I...
  16. matharoo

    Question - IDE How can I disable the source control icons?

    I have a project that is a git repository. I manage it using Git GUI, so I don't use GMS2 for the source control. It still shows the icons: How can I remove those? I couldn't find a related option in the preferences. I have not enabled SCM in GMS2, it automatically detected the git...
  17. B

    GML Characters Sudden impetuous

    Presently, I am undertaking Gm2 course and hitherto this is the movement code: /// movePlayerState() // if player in the air if (!place_meeting(x, y+1, Solid)) { velV += accelG; //Control player jump sprite sprite_index = sPlayerJump; image_speed = 0; image_index =...
  18. T

    GameMaker Controls Tutorial

    I want to introduce the controls to the player so he/she knows how the controls work. What is the best way to do that? Having a text pop up for one time only? Make an extra room with sprites where you can see the controls explained and after that walk into a portal to begin the game? Or...
  19. C

    2D Platformer Knockback

    I'm using the code from this video, I tried searching all throughout the internet for a good tutorial for 2d platformer knockback, however the ones i could find allowed the player to move after being hit, or were for other genres of videogames,like topdown shooters. Could anyone please either...
  20. V

    need help with some movement

    hi i am having a similar problem and could use a new set of eyes as well as help. ///the square with the turn is the issue ///the code works some of the time depending on the speed of car witch is in alarm 0 ///left pressed starts alarm 0 if speed < 10 { direction = direction speed += .5...
Top