sprite animation

  1. M

    Help with sprites for a vehicle

    Hey everybody. So, I'm new at using GameMaker and I have a little doubt about the sprites. I'm trying to create a vehicle for my game. I've already made an idle animation and an animation for its movement. What I wanna know is if there's any possiblity of changing a sprite into two different...
  2. trentallain

    Legacy GM Changing sprites following image_speed (SOLVED)

    Hi, I have a problem that I have noticed. In my code, as soon as the attack animation reaches the final sprite, it changes (near) instantly to the idle sprite. How do I make it so that it doesn't just instantly jump, and instead follows the image speed? (I don't think showing my code will help...
  3. H

    I could use a hand changing my sprite

    I'm creating a top down dungeon crawler game. I have 4 way directional movement, with up, down, left, and right. Each direction has it's own animation for walking. In this game you shoot enemies. I am trying to set up a shoot animation so that if the sprite is the left sprite and space is...
  4. F

    Legacy GM [Solved] Trouble Animating Sprites

    Hi, I'm trying to create an explosion animation for my game. The sprite has two small explosions on the side and bottom and a large one in the center. The explosions are supposed to fade out, but for some reason the pixels stay colored. Does anyone know why the pixels aren't recoloring? .PNG is...
  5. C

    GML [Solved] Enemy sprites won't animate right

    I set something up for enemy animations, but it isn't working quite right. The up and down animations work fine (usually), but the left and right animations don't work at all. This code is run in the step event for the enemy, after the movement code. I've tried using this code in the draw event...
  6. L

    A way to dynamically change object origin to match sprite in animation?

    Greetings, My first forum post in over 10 years <3 I'm building a game and was unable to find anywhere on the internets how using gml we could move the Origin (+) that is defined in a sprite which contains a series of image indexes to be consistent with the animation when played(to have origins...
  7. A

    simple game but how

    hi i want to make a real simple game. but i am a true noob. the game should just be just one screen like a painting of a tree for example. if u click on an apple it falls down or if u click on the sun it smiles. but how is it done. do i use sprites or other background layers. could u give...
  8. P

    GML Sprites sliding

    I'm currently trying to recreate Super Mario Bros. in GameMaker, and right now I have Mario able to move around and jump. He also has friction, which means he speeds up and slows down like in the game. However, there's a problem: when he slows down, he looks like he is "sliding" across the...
  9. C

    Applying Sprite Functions to Drawn Sprites

    Hey Everyone! I'm trying to program a merchant for my RPG game. I'm stuck on going about the basic menu options; Buy, Sell, Talk. What I'm trying to avoid is having to make each button be an object. The three menu options are displayed using the draw_sprite function. Each of the sprite names...
  10. A

    Animated sprite begins playing at sub_image 1-WHY?

    here the whole proj file just in case https://www.dropbox.com/sh/hejle9xb5t4veay/AABRwpsdZb7L6kiMUjfq4JXTa?dl=0 "Q" slows down room speed "R" restarts room its weird, when the sprite first plays it starts at sub image 1, skipping sub image 0 (the first one), but then when it loops it does play...
  11. I

    Partner follows player animation

    Hello, I coded with help to make a partner follow you inside the game, it works fine but there is a problem with his animation. When I am moving up or down, he follows my player with his respective animations "spr_follower_up" and "spr_follower_down" but when I am moving to the right or left...
  12. P

    Change sprite depending on Objects direction

    Hello, I managed to make object that is controlled by the mouse but I don't know how to change the sprite depending on the direction the objet is facing. I know how to change it if it's an object that is controlled by pressing buttons, but I don't know how to do it with a mouseclick controlled...
  13. A

    GML Having problem with sprite animation

    Ok so I recently did Shaun Spalding's "Platformer Basics" tutorial in an attempt to learn how to work with gravity and jumping. Everything concerning the tutorial went perfect but now I'm not sure how to approach my sprite animation. Below you will find my current code layout in step event of...
  14. A

    Need Help with sprite animation after certain amount of time

    Hello everybody ! this is my first post and I came here to ask you for help I'm starting a new project so this issue is about the sprite movement (more like when it ends) so this is what i have: i did 4 sprites; 2 for walk both sides, left & right, and 2 for standing that directions while no...
Top