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

sprites

  1. FlatulenzaFiamm

    How to load and unload resources in GameMaker 8.0

    Greetings people! I wanted to know if there is any way to avoid the default option of GameMaker in which all the game assets are always loaded at startup. This causes performance problems, usually leading to the classic "An error has occured" or sometimes even "Lack of memory". Sadly, I have...
  2. Claspo Jones

    2.3 Sprites Not Drawing

    Whenever I run my game none of the sprites or text draws, at first I thought the camera wasn't in the current room, so I used camera_get_view() and show_debug_message() to check, and it told me the camera was in the middle of the room. I tried adding draw_self() to my player object, but still no...
  3. Weastøne Entertainment

    SOLVED Subimage indices are clamped?

    Hello, I was programming when I encountered a recurring, but still relatively 'surprising', effect: I have a 2-subimages sprite and whenever I ask GameMaker2 for the subimage '2' (the 3rd one), it shows me number '0' (the 1st one). Is this regular behavior, or should I clamp manually the...
  4. hughrock18

    SOLVED Overlaying 2 or More Sprites

    I COMPLETELY understand the concept of using surfaces (or shaders) to overlay one sprite image on top (or below) another. Is that the only way(s) to do it though? If I want to, for example, overlay a player sprite with an armor sprite (sub images and all), are surfaces/shaders the only ways to...
  5. flyinian

    (Closed)Resizing sprites used in tile sets without effecting the tile set placements in rooms?

    QUESTION: Is there a way to resize sprites that are used in tile sets without effecting the tile sets in rooms? CURRENT ISSUE: Every time I need to increase the canvas size so I can incorporate more sprites for tile sets in rooms, it scrambles the pre-existing tiles in rooms. How can I avoid...
  6. Hypotakt

    Legacy GM Game graphic is suddenly weird and wrong displayed?

    Hey guys, I changed some stuff ( a bit of code, loaded some sprites and created a few objects ) and from the sudden my game looks very weird now when I run it. Most of the sprites look a bit offsetted and my character menu, which is drawn by surface, is now cutted off (but the surface size is...
  7. J

    GML Show sprite on collision only (Shader?)

    Hey everyone, I'm trying to show a sprite on the place that it collides only. This way I can create a type of shadow from one planet on top of the planets underneath: The shadow is created by showing the same sprite, making it black and lowering the alpha. Screenshot: Hopefully, someone...
  8. Klanes

    SOLVED Doesn't use correct sprite when moving

    Hello everyone. First of all I have to say that my English is not very good and that I am a real code noob. Well, I am using an 8 position motion setup based on this code: //movement hsp = (keyboard_check(ord("D")) || keyboard_check(vk_right)) - (keyboard_check(ord("A")) ||...
  9. A

    Windows [GM2] How to convert frames into individual sprites.

    Hi! I have a tile set, and I have converted it all into frames using the convert to frames thing, but I would like to take every frame and make them all separated, I could do image_index = x but I fear that it will lag the game, so what is the best thing to do? Edit: I'd prefer to make it so I...
  10. flyinian

    What are the ways to resize sprites

    I would like to give an instance a specific width and height while keeping it intact. I currently know of image x/y scale and 9 slice. scaling a sprite up will cause unevenness within the sprite. I am currently using 9 slice for the width and height of the sprite. This works fine as far as I...
  11. flyinian

    SOLVED Help with adjusting sprite size to fit text

    I am trying to have the sprite adjust itself so that the text fits within the sprite. Along the x and y axis. I am also trying to have the sprite adjust itself no matter the width or height of the text. The issue I am having is the sprite is stretching and certain parts of it is larger than it...
  12. L

    Code Errors

    Hello, I’ve recently swapped out the main character’s sprites for a different sprite but there were some complications so I decided to change back to the original. Since doing so, I’ve encountered issues with the character’s movement animation not swapping like it used to and the collision of...
  13. D

    animation getting cut off while using collision_circle

    So im using collision_circle and it's doing its job fine but I'm having one small issue. Whenever the player is in the zone briefly then instantly leaves the zone the enemie's attack animation gets cut off or just doesn't complete. How can I make it so that once the enemy has started its...
  14. otterZ

    GameMaker Question about Instances and Texture Memory [SOLVED}

    I am interested in how texture memory on a device is influenced by instances using sprites in different ways. I can't quite put into words exactly what I mean here, so here are some example scenarios below . . . Example A) If I were to create an instance that drew a large sprite, let's say for...
  15. Michael Goodridge

    [Solved] getting body segments to follow head

    I have 3 objects, oHead, oBodySegment, oTail. The player controls the direction of the head which currently only moves up, down, left, and right, but does not adhere to a grid. The number of body segments changes. I'm having trouble getting each segment to follow the head all the way to point...
  16. sinigrimi

    GameMaker sprite sizes = performance?

    Hello! The question is about the size of sprites, how big can they be done without losing a lot of performance? I tried pixelart and this is definitely not enough to realize my intentions, but I don’t feel like making a game exclusively for powerful PCs. Share your experience, please
  17. S

    GameMaker sprites have been inverted with no change of code

    hey! so I havent changed any line of my code since earlier today after I tested it out. my character was moving exactly how I wanted it to, when I pressed left it changed to the left facing sprite and vice versa. the only thing i have done is, add a wall and change the background of the room...
  18. FoxyOfJungle

    Graphics Pixel-Art: In your opinion are they good?

    Hello, I have a problem. My friend and I are making a platform game about business for Android and Windows, a game where you need to build a wild mall (all 2d). I am the programmer who makes all the logic of the game, and my friend makes the art of the game, I told him that he can do it any way...
  19. T

    GameMaker 2D Sprites in 3D

    Using GameMaker Studio 2. I want to make 2D Sprites face the camera in a 3D environment, in a fashion similar to how the original Doom or Don't Starve do. I have seen a few tutorials, but I couldn't find much related to that problem. Can you please give me some advice or a link to a guide? Any...
  20. A

    GameMaker Destroying sprites form layer

    Hi, I need to destroy sprites called sTree from my asset layer. All 10 of them. Can this be done, if so how? Thanks.
Top