movement

  1. V

    Windows run sprite animation is not working.

    i am just new to gamemaker studio 2 and programming itself. and still learning the basics, but now i ran in another issue i can't figure out. i am a little bit struggling with my code for moving with my sprites. but everything seems to work fine now, but the only issue i still got is that my...
  2. F

    How do i achieve "slippery movement" / difference between two directions

    So i want to create an enemy AI that charges tword a player but has like a simulated friction/delay. kinda like as if it were running on ice, so it starts still and builds up speed in your direction to try and ram you. But if you dodge him he shouldnt continue moving tword you but in the...
  3. 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
  4. 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...
  5. S

    How to call a certain part of a script on certain frames?

    Hello, this is my first post after weeks of using the forums as an excellent resource. I come from a Python background and there are built-in functions such as wait(), which allow me to 'pause' the execution of the script. I have written a script (shown below), which currently causes my NPC to...
  6. DarthTenebris

    Windows Player Clipping to Wall

    Hello everybody, I am currently working on a 2D platformer, and have run into an issue. The player seems to be getting stuck in walls when walking left, but not when walking right, and I don't have a clue why. Perhaps a fresh set of eyes can help me. Create Event: Step Event: Any help will be...
  7. Wicked

    Help with movement

    I've been working with a tutorial for a while now, just keep adding to it, and for some reason my character keeps moving even without me pressing buttons. It used to work fine but nothing seems to be wrong from the original code. this is the code ^ this is the tutorial ^
  8. Michael Franklin

    Player not moving

    My player wont move at all. It can jump around and whenever I press the keys to move it uses the run animation but doesn't actually move anywhere. //input left = keyboard_check(ord("A")); right = keyboard_check(ord("D")); jump = keyboard_check_pressed(vk_space); //Movement var move = right -...
  9. Michael Franklin

    Player not moving

    My character does not move when I run the program. I only have a step event: //input left = keyboard_check(ord("A")); right = keyboard_check(ord("D")); jump = keyboard_check_pressed(vk_space); //Movement var move = right - left; hsp = move * walksp; vsp = vsp + grv; //Horrizontal collision...
  10. FoufaDjo

    GMS 2 Change Key State By variable value

    so i want to change key state if its pressed or not by variable value something like this and idk if it work pls help me : rkey = keyboard_check(ord("D")); lkey = keyboard_check(ord("Q")); dkey = keyboard_check(ord("S")); ukey = keyboard_check(ord("Z")); playerid.rkey = mover; playerid.lkey =...
  11. Jmarlin3

    Help with applying movement to another

    I'm having trouble with one object operating based on what another does correctly. Here's what it's supposed to do: Based on the direction of what obj_player is facing, obj_player_head should travel that direction when the 'Z' button is pressed. Code for Obj_player: /// Movements //Get the...
  12. D

    Attack State Animation Will NOT End

    Hi guys. So I've set up a simple attack state using a switch statement, but two things occur and I can't for the life of me figure out why. 1. Upon pressing the attack button the attack animation continues to play, but it does transition to my move state and allows me to move like normal and...
  13. D

    2 Behaviors for 1 Input?

    New here and was looking for some pointers. I've been trying sometime for an easier way to make the space bar play a different animation based on the direction my character is facing. For instance, if facing right, I should execute an attack animation to the right. If facing left, I should...
  14. Posho

    GMS 2 Range Movement With Collision

    Hello, I am trying to make an enemy move to a random position within a radius. First the position is set and then it travels in the Step Event. It has to move to a position that is longer than a minimum value and shorter than a maximum value. This is how I went with it: Define target position...
  15. Y

    GMS 2 Advice Needed, Mouse Controls for a 4 directional Isometric World

    Right, so I figured out keyboard controls for movement on an Isometric world. But I would like to add mouse controls as a feature that is easily accessible for the player, so they can decide on preference, without having to select control preference from a menu item. That said, my thoughts are...
  16. Matthew McIntosh

    *Solved* Noob Character Movement

    So, I am returning to game maker after well-over 5 years away and I'm finding that picking up at my previous skill level is clearly not an option (I've forgotten everything it feels like). Anyway. I was messing around with a super-simple character movement my mouse clicking I did it two ways...
  17. A

    Legacy GM Draw chain on freely moving object

    Have you ever seen how a chain chomp works? That's basically what I'm trying to accomplish except the object can move freely around the room. The starting point of the chain (white) should either stretch however many chain links evenly across the line between the starting chain and the object...
  18. yashamatt

    GMS 2 [Solved] One Way platforms sometimes work and sometimes don't

    I have basic movement and collision with solids set up, but when I try to set up my one-way platforms I will only be able to interact with whatever one-way platforms that have a lower y-axis than the obj_player when the room is created. If I decrease the spawn y-axis of the obj_player then load...
  19. jjettii

    GML Issues with wall collision, related to sprite index??

    I'm having an issue where my player sometimes gets trapped by a wall and can't move. This only occurs when meeting with a wall to the left or right, at this point the player can't move up or down. The issue doesn't occur when meeting to a wall above or below the player. The strangest part of...
  20. Moose863

    Drag And Drop Jumping issues

    Hi, My character is set to jump when I press SPACE, although, when I am moving left or right and press SPACE it jumps really smoothly if I press SPACE it jumps but as soon as i hit LEFT or RIGHT it cancels out the jump and just moves left or right. How would I make it carry on getting to the...
Top