• 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. K

    How do i update my Network Players sprite_index

    Hi, so I'm relatively new to game development and I'm currently developing an MMO and so far have multiple clients successfully connecting to my server. My local player object moves correctly and has the correct sprite movements (up,down,left,right). but I'm having a little difficulty in making...
  2. A

    [Solved] Enemy animation won't play

    ///scr_zombie_attack var dis = point_distance(x,y, obj_player.x, obj_player.y); if (dis > attackRange) { state = enemyState.FOLLOW; } else { sprite_index = spr_zombie1_attack; speed = 0; image_speed = 0.16; image_index = 0; if (image_index >= 5) { // state =...
  3. A

    Windows [SOLVED] Corrupt GM:S Install and Re-Install? (Screens)

    Hello, I was having an issue in which trying to change sprites by using "sprite_index = spr_example_sprite" would just pull the first sprite from the list of saved sprites for that project. I tried re-installing but got this "Exception" message during the install. GM:S is up-and-running now...
  4. Y

    player not working

    if keyboard_check_pressed(vk_left && !vk_shift) { //hspeed = -5 sprite_index = Spr_Player_Walk image_xscale = 1 } else if keyboard_check_pressed(vk_left && vk_shift) { //hspeed = -8 sprite_index = Spr_Player_Run image_xscale = 1 } else if...
  5. S

    Legacy GM (RESOLVED) sprite_index resets itself to -1

    I just came across another issue today. for some reason my projectile objects are resetting themselves to -1 in between the Debug alarm[0] event and the Projectile step event. I followed the debugger to these points and I can't find out what is causing it. I am using a variety of code so I...
  6. F

    Legacy GM sprite_index - not sure how it works

    Hello I have important part with saving sprite_index, like a object_get_sprite(inst.object_index) I have some errors and reason can be elsewhere, but to be sure, I want to know how sprite_index works. With calling object_get_sprite(inst.object_index) I have number and this is ok. But when I...
  7. Luke Pierson

    State Change please help

    Hey everyone. So I will be making a game that has 3 inventory slots. When an item is placed in a slot, it will set a variable as true. In addition, there is an item selector that moves between each slot. When you pick up a certain item (the whip), you enter the whip state. If the selector moves...
  8. R

    Windows [SOLVED] sprite_index breaking the code

    Hello, I'm having my first steps on GameMaker and after following the tutorial to create a basic platformer game, everything works perfectly : I can move my character, jump, and I correctly collide with walls and ground. But if try to add some conditions to change my sprite using sprite_index...
  9. Z

    Legacy GM Sprite_index VS Image_index

    Hi, so for some time now ive been wondering about this, which is better to use for static images like on the HUD or just some object in the room, 1 sprite with 100 images or 100 sprites with 1 image? ive heard that its better to use sprites with single image.
  10. F

    Legacy GM Replacing a sprite from a external file directory Problems

    I am making a program to pose characters using a ragdoll setup and I have been trying to make it possible to replace a sprite for a body part from external image file directory. .png 200x200 But when I replace say the left arm on one doll, all the left arms of all the other dolls change...
  11. S

    pathfinding canghe sprite

    hi guys, i have a object. this object must go in a specific point. to go in this point it needs avoid other object. i do it with pathfinding everything works. I have a problem with change sprite. The object have a different sprite for every direction.3 change sprite work good but when object go...
  12. E

    Help with weapon sprite change

    I've been using GM for several months, but i'm stuck at this one for almost 3 days. Help will be very much appreciated. And sorry for my bad english. The problem is when i pick up obj_m16 and obj_pistol which are completely similar with different sprites and some options. Both of the weapons...
  13. Axl Trauts

    Legacy GM SOLVED: Player movement sprites

    Hi, I know the basics of how to move a player. In my case it's a plane in a top view shoot-em up game such as 1943, and I know how to change the sprite when it moves to the left, stops at a frame while the left key is pressed, and when I stop pressing it, the sprite changes to the starting...
Top