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

  1. S

    Lightning-like effect in Game Maker using ONLY sprites not drawing lines?

    I'm trying to do a Lightning effect, but I've only seen tutorials using it with drawing lines and not sprites. I'm also guessing this would be very hard to code since you would need to make the code the best you could possibly do, since I think that it's going to be hard to give the code a...
  2. Tangerine

    GameMaker How to add an sprite_index to an instance in the room editor?

    Hello! I have a parent object that I plan to use for decoration instances for my game, instances of this objects are depth sorted, are collisionable and by default don't have a sprite index. The purpose of this is for adding an instance on the room editor and change in there it's sprite index...
  3. M

    Image Speed problem

    Hi, Im making a plataform game and I have some codes on the player object. Create event: sprite_index = spr_jugador_idle; image_speed = 1; image_index = 0; image_xscale = 1; V = 6; Salto = 25; Step event: /// @Movimiento #region //Movimiento move = keyboard_check(vk_right) -...
  4. D

    (SOLVED) Image_Index not doing what it should be doing.

    I know that this is very basic and it did used to work before on another project (gms 2 as well) but it nots working anymore and I don't really know why. Heres some code to help you better understand my problem: if (sprite_index = sp_enemy_1_slash_attack_down) && (image_index == 19) {...
  5. R

    [SOLVED] drive and attack

    hello guys, I'm having a little sprite problem. I am trying to make my character walk and attack while walking, well it works and I did it but the visual part I am having difficulty I have a sprite for him to stop attacking and another one for him walking and attacking, the problem is: he...
  6. jobjorgos

    SOLVED how to draw_sprite from sprite index number?

    function scrItemHover(argument0) { icon = argument0; //this is the sprite name, something like spr_wooden_sword or spr_iron_dagger draw_sprite(icon,0,mouse_x,mouse_y); } ERROR: draw_sprite argument 0 incorrect type (string) expecting a Number (YYGI32) In GM1.4 this worked fine to...
  7. JesusOnExtasy

    Windows Sprite_index (ping-pong) how to do?

    There is a sprite, it has 8 frames. how to make the sprite play like this: 1-2-3-4-5-6-7-8-7-6-5-4-3-2-1 help me please
  8. C

    GameMaker Help! Sprite Animation

    So I am new with GMS and I am working on some player movement. I have used a premade sprite sheet for a place holder and have used multiple sprites for a walk animation. I did some tinkering around and I was able to get it working properly (ie when the user holds "A" the sprite moves left with a...
  9. P

    Wait Until Sprite Frame

    I’m fairly new at GML and I’m looking for a script that will make an object wait until the sprite frames have looped once before switching to a different sprite. Example: (sprite_index = sExample1) A button is pressed (if keyboard_check_pressed) Object of -1switches (sprite_index = sExample2)...
  10. F

    Legacy GM Why does sprite-switching break my room transition?

    I have a fade out/fade in room transition set up with a persistent player object. It worked absolutely fine until I started adding running animations to the player object. The following code now breaks the room change every time - it fades out but fails to switch to the new room. if speed > 0...
  11. B

    Weird glitch (possibly?)

    So for some weird reason, my code was working a while ago and quit. So I toggled with it and managed to get something out of it. This time, however, instead of changing it to the correct sprite like it was supposed to, it flickered in between two other unrelated sprites. Now I toggled it again...
  12. K

    Legacy GM Boulder crashing game on impact

    FATAL ERROR in action number 1 of Step Eventobj_dust for object obj_boulder: local variable __b__(100001, -2147483648) not set before reading it. at gml_Object_obj_boulder_CollisionEvent_10_1 (line 7) - if __b__ I'm not sure what is happening, as I am trying to get a projectile with a...
  13. D

    Wanting to change a sprites colour as it is moving in random direction

    Hi guys, first time on here, so apologies if this is obvious! I have sprite that is set to move in a random direction on creation, and bounce off the walls of the room. This is working fine, but what I want to do is have an alarm that counts down so it changes the colour of the sprite every...
  14. Z

    Animation when character idle & when moving?

    I have this character which has an animation when it is moving or idle by default. (using subimages) I want to change the animation into its jumping animation when I press the jump button. How do I approach this? Do I just change the sprite of the character? In my game, the character will...
  15. A

    Legacy GM Make character animation stop when NPC stops on pre-programmed path

    Hi there, I am quite new to GM and coding in general so please bear with me. I have programmed a NPC to follow a certain path and said that it should play certain sprite sheets when moving in a specific direction. Now that works well. But now I want my NPC to play the idle sprite when it...
  16. B

    Auto Facing Sprites (RTS)(GMS)

    I'm currently making an RTS (Real Time Strategy) game and i'm having trouble knowing how to make the sprites face the left or right in which they're going. You can place an object called goto they will travel to it and stop when they touch it. I would like to know how to make the sprite index...
Top