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

sprite change

  1. D

    Change sprite

    I am making a top down shooter using primarily gml visual. I am using a sprite pack whch has an idle animation - which is the main state of the sprite (sprite1). It then has a 3 frame shoot animation where the characters body reacts to the recoil (sprite1_shoot). I will later add a muzzle flash...
  2. da703337

    SOLVED New to the software, not sure why this code isn't working

    I have just begun to learn how to use the software and am currently experimenting with making a main menu, but a single line of code currently isn't working, this being line 4 of the code pictured below. Line 3 executes with no issues, but line 4 does not have any effect while also not...
  3. W

    GameMaker Sprite invisível

    Olá gente minha primeira vez aqui na comunidade, e eu estou com problemas no meu jogo o sprite do personagem principal ficou invisível e eu não sei mais o que fazer eles já estão todos no lugar mas enquanto eu mexia em outro script que era o dos inimigos ele simplesmente sumiu e n apareceu mais...
  4. HerrMoki

    GML SOLVED - (BEGINNER) Setting the player sprites how I want them to be.

    Hey there GM Community! I just started learning programming, followed a few tutorials, written down some stuff and I have a small and probably laughable problem I can't solve. I wanna make a small test game (top down adventure) where the player can move in 8-directions, has 4-walk animations...
  5. horrorfood

    GML How to change sprites when button is let go?

    I just started making a top down game and have finished making the walk cycles in all four directions, but the issue arises when I stop walking. I'm trying to get it to show a separate, singular idle sprite when a certain arrow key is released, but I can't get it to work. I'm a beginner at gml...
  6. KidinCTRL

    GameMaker I can't make a path reverse sprite change

    I'm trying to make a path sprite change for my enemy, here is the code: spd_path = 4 hspd = 0 left = -4 right = 4 path_start(path_slime,spd_path,path_action_reverse,true) var move = right - left hspd = move * spd_path if hspd != 0 image_xscale = sign(hspd) hspd means horizontal speed. I'm...
  7. 01Warlock10

    GameMaker Rightmost Pixels of the Up/Down Sprites Are Gettng Cuttoff

    hey all, So I've recentely made some changes to my player sprites, and I love them, but I've noticed that when the player moves vertically, the up/down sprites, the rightmost pixels get cut off slightly, it's hard to describe, so here's a photo. (notice how the right side is cut off slightly.)...
  8. Schtipadoo

    GML Simple question (Sprite somtimes freezes)

    when i make animations i want some to stop looping, i do that by setting the speed to 0 when it reaches the last frame i use it for basic stuff and it works fine most of the time, only on the jumping sprites something wierd happens when the animation plays it will stop and transition to the...
  9. JustEnix

    SOLVED HELP, PLEASE! - Increase Max Health With Sprite

    I'm new to game programming, I don't have enough knowledge to do everything I want to do on my own, that's why I need your help, guys. I created a sprite for the player's health, but then I ran into a problem: how am I going to show that player health is growing as he level up and increases his...
  10. i_am_virgo

    GameMaker the size of my sprite changes when i flip the image - can anyone help out?

    context: so i'm currently working on a princess peach themed game as a birthday gift for my sister, and i am quite new to programming. i've been following the general Shaun Spalding platformer tutorial to get a feel for GML, and i've run into a problem when trying to flip the sprite when the...
  11. M

    Change sprites when moving left?

    Hi everyone, This is another bit of code I haven't been able to work out on my own, despite finding similar posts; I am a beginner! I am making a platformer where I am using left and right facing sprites for idle, running, jumping, etc. The code I am using for changing animation was acquired...
  12. UnderdogKeeper

    GameMaker GML, How to Change Sprite depending of a mouse placemant?

    Hello, guys and gals. I'm very new to the GameMaker, and even newer to this place. So I hope I'm posting this in a right thread, and I hope my problem will not irritate you or something like that. Before all of this I just want to repeat that I'm a rookie beginner, so all of this stuff is pretty...
  13. William Garrison

    GML Unique Object Collision

    I have a Collide event with the character that swaps the sprite of a flower to an animated sprite. Problem is when the character triggers that one flower then ALL the instances of that flower object change sprites. Can you point me in the right direction to fix it so just the one flower reacts...
  14. I

    GameMaker How to change sprites

    So I want to make a sprite change based on mouse_x and mouse_y , so when mouse_x is less than object's x, then the sprite changes to this one which is turned left, and the same thing with y value. I have this line of code: if (x < mouse_x) sprite_index = spr_playerR; if (x > mouse_x)...
  15. G

    Change sprite when walking through obj and then back

    I'm having trouble getting this sprite to start and stop when it should. I was wondering if anyone could help? Basically I've got a window object that, if it's open and I try to walk through it, he jumps through it. The Alarm[0] code resets 'timer' to 0 and sets the trig_jump% vars to false...
  16. N

    Question - IDE Enlarging sprite made paintbrush tool smooth

    Enlarging sprite lost snap function in the sprite paintbrush tool. How to fix? When I first started creating sprites, there was more of a low rez grid effect and the color would snap to fill only one block at a time. Once I enlarged the sprite, I lost that functionality and the brush tool...
  17. M

    Graphics Player/Hero - armor

    Trying to make my first platform game. I want my player/hero to be able to find different armor and weapons. But Im not sure how to design this. It will be a lot of sprites if I need to do a completely new sprite for each armor. I like the idea if I could do it with layers or in some other way...
  18. P

    GML Visual Child Ojects Changing Because of Parent

    Hey, I'm a beginner to GameMaker and I'm having some difficulty with two of my objects changing their sprite because of their parent object. I have the child objects (the boots) change their sprites depending on the direction the character moves. I have also set the parent object's (ship body)...
  19. C

    An Inquiry About Sprite Control

    Hey All! I have finished a game. Well, "finished" in the sense that I have all the programming and mechanics, but no art. I was going to make some animations for my player, but don't know how to control that. For starters, how would I make my character walk down/left/up/right and change between...
  20. T

    enemy won't change sprite based on direction

    I'm using the enum and motion planning function for the first time in an attempt to create AI for a 2D Action RPG. I'm wondering why my enemy's sprite won't change at all when it changes direction. Also, based on what I have, do you think I am on the right track for making sufficient AI. Create...
Top