movement

  1. Yellowhite

    How do if camera move is more than 0

    I wanna know a specific code to my code, but for that i need know if the speed of CAMERA VIEW is moving or no. Like if view_is_moving {//CODE} else {//STOP CODE} or something like if view_speed >= 1 {//CODE} if view_speed <= 0 {// STOP CODE} but, something functional like that, i will love...
  2. Genesys Generation

    GMS 2.3+ Relative Movement and Infinite Pseudo World

    I tried to create a game based on this: https://play.google.com/store/apps/details?id=com.vkslrzm.Zombie&hl=pt_BR&gl=US Gameplay: For this I would keep the character static in the middle of the screen and only the enemies would move. There would be some commands to move the character, but...
  3. 21Delynx21

    GMS 2.3+ [SOLVED] My Object does not move when I try to use a script instead of using the event manager

    Hi everyone First I made the movement in the event manager for every button itself, but when pressing two buttons at the same time, it went not the way I'd like to. I added the function in the event manager and have no clue why it doesn't work, the object is not moving. I guess I forgot...
  4. N

    GMS 2.3+ Vertical Gunkick and Jumping

    Hi, I made a short video to explain my problem a bit better: As you can see in the video the player jumps a bit when shooting down after being in the air for a bit and then shooting downwards the player doesn't really move much. However when the player jumps and then shoots downwards directly...
  5. H

    SOLVED Walking doesn't work with finite state machine implemented.

    I have an issue that the character is unable to displace when the respective keys are interacted with. I've implemented a finite state machine to manage the different states and transitions between states. Here is the code: Step: get_input(); switch(player_state) { case 0: player_idle()...
  6. Marquitos3000

    Windows Movement problem

    Hi, I´m making an RPG game and I use this code in my character´s step event: //Estado del jugador keyLeft = keyboard_check(vk_left); keyRight = keyboard_check(vk_right); keyUp = keyboard_check(vk_up); keyDown = keyboard_check(vk_down); keyActivate = keyboard_check_pressed(ord("z")); keyAttack =...
  7. N

    GMS 2.3+ Trampoline not working when falling on top of it too quickly

    Hi, I've made a really short Video (40s) to explain my problem more easily. The Code for my Trampoline Step looks like this: if (instance_exists(oPlayer)) { var horizontally_on = (oPlayer.bbox_right >= bbox_left) && (oPlayer.bbox_left <= bbox_right); if (oPlayer.bbox_bottom <= y) &&...
  8. ashurlee

    Issues occurring when using walk animation

    I have just created a walk animation for my character, which I initially implemented using this piece of code... if (hspd != 0) || (vspd != 0) && (sprite_index != spr_hairdresser_walk) { sprite_index = spr_hairdresser_walk; } else if (hspd = 0) && (vspd = 0) && (sprite_index !=...
  9. M

    GMS 2.3+ Help Please! New to GameMaker & Struggling With Sprite Direction!

    Hi all! I recently downloaded GameMaker and started doing some tutorials on Youtube to teach myself the basics. I'm happy to be part of the GameMaker family and have always had a passion for gaming, with only recently having the idea of trying to create my own game from scratch. I have a...
  10. Marquitos3000

    Windows COLLISION PROBLEM (HELP)

    Hi, I´m making a plataformer game and in my character I put this in the Step event: var hor = keyboard_check (vk_right) - keyboard_check (vk_left) if (hor != 0) { if (place_free(x + hor * 2,y)) { x += hor * 4; } image_xscale = hor * 2; sprite_index = sPersonajeWalk; } else {...
  11. N

    SOLVED Trying to "Stop" a Camera From Going to Certain Parts of a Room

    Hi all, I'm currently working on a 2D game with a smooth moving camera that follows the player. The camera itself works fine and using clamp() I've managed to keep it only moving within the confines of the room it's placed in. I want to be able to control where the camera goes more precisely...
  12. T

    GMS 2.3+ Need Advice for Movement Code

    So the past couple months I've been spending what time and patience I could muster trying to figure out how I should handle my movement, specifically in regards to real numbers, angles and collisions. Ideally I would like to program a collision system that would enable me to have real value or...
  13. DTheChemist

    Sprite distortion issue need help

    Ok heres my first error code issue after following a Yoyo games youtube video tutorial. /// @desc Core Player Logic //Get Player Inputs key_left= keyboard_check(vk_left); key_right = keyboard_check(vk_right); //key_down = keyboard_check(vk_down); key_jump = keyboard_check_pressed(vk_space)...
  14. yukaccino

    GMS 2.3+ Hex-Grid Movement- Issues with Script

    Hello! I'm a newbie with GameMaker and my programming skills are really basic, so I've been following a four years old tutorial series I found- I want to make a Turn Based Strategy game, using a hex-grid to move and attack, pretty similar to Sid Meyer's Civilization. Tutorial I've found: I got...
  15. S

    Drag And Drop Character overlaps object after each movement

    Hey all, I have been working on a 2D platform game, however, I have difficulty getting my character to remain on any object after each movement (pressed) even with collision on the object. For example: 1. My character would overlaps on the object's corner (not using the tiles yet) after...
  16. S

    Help with programming

    Hello everyone! I'm kinda new to programming and was following this tutorial: when I ran into a problem. when I try and run the program I get this error message: ___________________________________________...
  17. L

    SOLVED Check direction face character before move.

    Hi, I am quite new to GM, I would like someone to help me, you see, I have managed to make my character move in a 16x16 grid, which changes the sprites according to the direction in which I move. But in addition to that I would like to implement the following validation: -When my character is...
  18. L

    Legacy GM [RESOLVED!]Problems with multiple movement inputs

    Let me get straight to the point. In my 2D side scroller my player doesn't react properly when I do certain inputs. For example, let's say I'm holding the right arrow so my player goes right. While holding right I push the left arrow as well. So I'm holding left AND right. Then I released right...
  19. D

    SOLVED How to lock x value to actual or lesser?

    I'm trying to make a object freeze it's positive x so it can slide walls on collision. Basically i have this check: if (!place_free(x + collisionOffset, y)) { } collisionOffset is a variable to determine how far the object will be from the collision point on the given coordinate (x+, x-...
  20. M

    GMS 2.3+ Coding A Proper Hookshot?

    Hello there! I am currently working on a side scrolling platform game with a main focus being hookshot based grappling which the player will use to both traverse and fight/grab enemies using a button press based on the direction the player is facing similar to say 2D Zelda. Currently, I am able...
Top