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

movement animation

  1. T

    GML Problem with Up and Down movement animation in GameMaker

    Hey Guys, Im new to GameMaker and I tried making a movement system with sprite animations for the player object myself. But I have a problem where sometimes the animations wont work correctly. It probably only has to do with the top and down movement because these are the only directions that...
  2. I

    Smooth grid based movement

    I want to make a top down game with grid based movement But i dont want to do just x += 32; for example. I want the player character to do like a little jump from square to square, how would i do that?
  3. M

    SOLVED Help / 8 Direction Movement and facing by releasing the keys

    Hello, i haven't been programming for that long and somehow I can't find the solution to the following problem. I have a code that allows me to walk in eight directions. However, I can't get the character to look in that direction and the sprite to change in the same direction to idle when I...
  4. 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 !=...
  5. J

    SOLVED Help fixing a movement animation or the code for it?

    Hi this past week I've been trying to find a tutorial or information about how to make a Pokémon or final fantasy style grid based movement with animations. I have 90% of that but the animation doesn't play correctly, fully, and it appears to stutter while holding down the directional movement...
  6. M

    Character is always facing left once any key on the keyboard is not pushed anymore.

    Hello, i'm trying to assign basic movement/collision in my game but i'm having a weird problem I can't seem to pinpoint. All I have is one character and another object to test collision against. For some reason, whenever I release a key the left facing sprite is what is instantly snapped to. Am...
  7. P

    GameMaker Unbiased 4-Directional Movement With Diagonal Movement

    Hi there So I want to have 4-directional movement but still allow for diagonal movement. It's just basically the movement Undertale has but I just don't know how to make it work properly. what I have now is: /// Create Event plyrspeed = 2; // I need to work with directions like this because I...
  8. 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...
  9. 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...
  10. 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...
  11. K

    GameMaker Making an object follow another object at a constant speed and distance

    Not quite sure how to title my issue. So, I made a segmented snake-type enemy and I want the body segments to follow the path of the snake head exactly. Right now it looks like this though. The first few segments follow the motion of the head a little bit, but the ones after that just follow...
  12. FoufaDjo

    GameMaker [SOLVED]keep same direction when colliding with wall

    when the object move to the left and collide with the wall he stop moving but change is direction to 0 how can i fix that spdmax = 2; accel = 0.5; friction = 0.3; if rkey hspeed += accel; if lkey hspeed -= accel; if dkey vspeed += accel; if ukey vspeed -= accel; speed =...
  13. Y

    Windows Animate Movement 2d platform help

    Hi there I need all codes to implement animated movements for obj_player i want keyboard vk_left vk_right vk_down vk_space vk_Letter // for attack now..., what i would like .... ///////////////////////////////////////////// vk_space when I press the space key just once, I mean not to hold...
Top