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

move

  1. Mr.R

    Make move object change direction ( bouncing )

    I have tried with this code: x += speed * direction; if (x > 1000 - sprite_width / 2) { direction = -1; x = 1000 - sprite_width / 2; } if (x < 70 + sprite_width / 2) { direction = 1; x = 70 + sprite_width / 2; } but, the move object did not change direction ( bouncing ). PLEASE...
  2. Pavel

    GML Vibration on slopes with move_and_collide

    Hi, I have an issue with the slopes, I've recorded a video to demonstrate the problem. Because tiles for slopes to work with move_and_collide require precise collision, with the low-resolution sprites, it is visible how the character kind of jumps from one pixel to another while going down...
  3. M

    SOLVED How to make auto movement, but strictly by cells

    Greetings! May someone please help/guide me? I want to make a movement like in a snake, when the character moves in the direction given by the key, but strictly along the grid My idea, so far, was to make it continue to move to the middle of the next cell after calling a perpendicular direction...
  4. Tete-chin

    GameMaker GML Visual Examples for Beginners (movement, collisions, etc.)

    GM Version: v2023.2.1.75 Target Platform: ALL Download: No download Links: N/A Warning: The audio is in Spanish but you can activate the captions with translation. It translates well. Select closed captions (cc) tool, then select settings / auto-generate / language choice. First lesson: How...
  5. thrownaway9k

    GML Variable not being changed through collision OR step event for no reason

    I have a trap object in an auto scroller set to slow down the players movement speed variables once they touch it. Here's the code that plays when the player collides with the trap: if(other.sprite_index = sGoop && other.activeGoop = true) { other.activeGoop = false; playerGooped =...
  6. Jotesco

    GML Background moving and following camera at the same time

    I'm having a problem with background, the problem is that i need to my moon move,but always in camera vision and that not working,the moon stays in the same position,anyone know where's the problem? šŸ˜” Here's my code,and sorry for bad english. (Lua is Moon)
  7. D

    Question - IDE Can i change a middle button move?

    Hello, everyone. I'm using Logitech G203 mouse. And this mouse don't support middle click. How i can change the move button?
  8. NovemberTender

    SOLVED Player object stops falling if i hold left or right next to a collision object.

    Like i said above. i tried to look up solutions, or different tutorials on how to do movespeed. I've been scratching my skull all day, and thought i'd ask here, since i've gotten alot of help here before. i apologize if I'm unclear of what's the issue. here is the code: #region //Get player...
  9. T

    Dragging objects with the mouse on branching paths

    Hello, So I have sort of a special situation, since I can't find any existing solutions online. I am programming a Drag and Drop puzzle game and I need to drag an object around in a grid. Here's a snapshot so you can picture my goal: So I need to drag the circle along this grid and get it to...
  10. Z

    GameMaker Camera doesnt move

    this is supposed to move the camera, but it doesnt move it for whatever reason. var vm=matrix_build_lookat(x, y, -10, x, y, 0, 0, 1, 0); camera_set_view_mat(global.camera, vm);
  11. Y

    SOLVED Help with grid-based movement

    I'll try and keep this is as simple as possible. I'm making a top-down box pushing/pulling game where once the player makes contact with the box, they are "magnetized" to it unless they scrape it off. The movement in the game is tile-based, so one press of the movement key moves the player...
  12. A

    SOLVED Player object moves to the right without any inputs

    I'm having a strange thing going on with my code. This is the code I usually rely on to move my player object. However, it now moves to the right on it's own when no key is being input. If I press the key to go left, up, or down, the object stops moving to the right. You can test it to see the...
  13. N

    [help] how to create the same object in different directions

    hi i'm new to game maker programming and sometimes i get stuck in trouble like this. Well, I want to create two spawners to create 1 object in 2 directions for a platform game I have 2 obj_spawn and 1 obj_char. to obj_spawn_A I make an instance_create of obj_char as long as I press Q to...
  14. U

    SOLVED Code for keyboard movement

    Hello. I am now writing code to move the character with the keyboard. The code below I wrote is flawed. For example, if you press the left key while holding down the up key, and then release your finger from the up key, you will continue to move to the upper left even though you have only...
  15. Lens

    SOLVED How to make other objects above an specific one have their events triggered?

    Good morning/afternoon/evening! I'm making a tile-matching game and need pieces to fall once a said line gets completed (removed). Thus, I tried making a if object.y < self.y with(object) triggeringvariable = true; once it turns true, the object gets their ".y += 30". The problem is, instead...
  16. Klanes

    SOLVED Doesn't use correct sprite when moving

    Hello everyone. First of all I have to say that my English is not very good and that I am a real code noob. Well, I am using an 8 position motion setup based on this code: //movement hsp = (keyboard_check(ord("D")) || keyboard_check(vk_right)) - (keyboard_check(ord("A")) ||...
  17. A

    GameMaker Objects created in runtime still there after restart

    I have an target_object that is located in a room "room1". After interaction with a player_object it is supposed to move to another room - "room2". This object cannot be persistent as it is supposed to be in a specific room - not always in active room. So I used...
  18. A

    Legacy GM [GMS 1.4] Movement code that worked for one project won't work for this one

    -I get no errors, it just simply refuses to move -double checked if its the exact code i had for the previous project -left out animations -other inputs I made work such as using the arrows to launch projectiles
  19. F

    Problems with the enemies movements

    Please help me, I have a trouble with the moves of the enemies in my game!! They are facing right, but when they walk to left, they don't turn to the left and make a "moonwalk". Also, I can't make they change to stopped sprite when they are stopped and they keep with the walking animation even...
Top