sprite

  1. H

    Blurry sprite :(

    I'm working on a Mac, and just about to start a new project. This isn't a pixel art project, but one with clean/smooth lines. My room width & height are currently set to 3840x2160 (although I have experimented with all the resolutions smaller than this too). The problem I am having is that when...
  2. ImFaariz

    Development What is the difference between Objects and Sprites, how can they be used?

    What is the difference between Objects and Sprites? According to one of the videos on GameMaker YouTube channel, sprites don't run any code and can be used for animations. So how can they be used? How can I use sprites for animation for the player(s) [object(s)]?
  3. Dune Veteran

    GameMaker (Solved) Sprites messed up - problem with caching?

    Hi, I've heard from several people who tested my game (Google Play build) that sometimes, the sprites go all crazy and mess up the whole game like this, usually if I add some new sprites to the game with an update: Clearing their local cache fixes it, but that also clears their saves and game...
  4. TerranLore

    GML Visual Object Showing Incorrect Sprite

    Hey all, I'm very new to GM and am excited to make my first post in the community! Hoping you all can help me with this issue. Basically, all of my object instances are showing the incorrect sprite once I run the game. You'll see in my attached screenshots what I mean: the first screenshot...
  5. Awaraladan

    SOLVED Alarm value exeeds set value after multiple collision event+Trigger not happening

    Hello, I'm new here and to the forums at general, so I apologize in advance if I'm submitting my post innaproprietly. Here is my current problem: I'm new to programing and practising on bullet hell-ish arcade shooter and whenever enemy collides with player projectile I change its sprite to...
  6. C

    should I use a sequence to animate a sprite?

    Hello! I’m new to modern GM and I was wondering if I can/should use a sequence for simple sprite animations? Ive learned how to use sequences for things like death animations and menu screens, but I’m not sure how to use them with an existing object or if that’s even efficient. Foe example, I...
  7. B

    Background and Sprite size

    Hello everyone. 1. I would appreciate the help, so stranded. Please can someone guide me through the following; How or what do I do to images imported as sprite, and loses quality? I need a 71 by 71 sprite for items, but when I edit on canva and import it as sprite, it loses quality so bad...
  8. 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...
  9. The Water Is Shallow

    SOLVED Can I create objects with only a fraction of the Tileset Sprite?

    < This question may be awkward as it is written in a translator > ( Some of the free RPG tileset images from itch.io ) I want to set the rope in the center of this image as an object and change the ROOM in case of a collision with the character. I've been cutting out the rope part from the...
  10. T

    Camera Follow Causes Sprite Jitter

    Now that I have set up the camera to follow the player and keep them in the center of the screen, the sprite begins to jitter whenever I am moving diagonally. It looks fine when moving only left or right. I have tried changing a lot of things in the viewport settings, but nothing seems to...
  11. DrStupid87

    GML How can I get multiple alpha colours in a vertex buffer and flip the sprites?

    Hi all, So I have a vertex buffer over an isometric map. It randomly spawns images of grass, dirt and rock sprites to fill up the map and make it look more interesting. First question is how can I set each sprite (of 1600 drawn) to randomly flip on its x axis? I tried writing image_xscale =...
  12. ItalianBoomer

    Is there a way to have different istances of the same object with different sprites?

    If I have 4 istances of the same object (i.e Warrior, Wizard, Elf and Dwarf istances of the object o_Player_Character) is there a way to make them use different sprites? I have found this but it looks a bit too convoluted. Is there a simpler way?
  13. V

    How can I make my character attack with a random movement?

    How can I make my character attack with a random movement? I created this code but it seems that the movement is overlapping or going too quickly between them, I wanted to pause between movements, to make something very fluid. if state = EnemyState.ATTACK{ hspd = 0 var random_mov =...
  14. M

    GameMaker How to set the collision of an object right if I stretch the sprite

    What the title says. If I have an object with lets say a default sprite of 120 X 120 and I stretched that sprite in the drawevent of the object so like: draw event: draw_sprite_stretched(spr_button_start, subimage, x,y, 1000, 120) The object uses the old collision mask of the old sprite (the...
  15. R

    Draw Save Icon

    Hi all, Pretty new to Game Maker, this is my first real project I have been working on and I would like help displaying a quick 2/3 second sprite or string of text each time the save function is performed by the player, I am open to using an object, sprite or text string on the top right hand...
  16. Dimsum Cart Studio

    SOLVED CAN NOT import image to sprite

    Hello everyone, My GameMaker Studio 2 suddenly, for no apparent reason, can't import new images into sprites. I've tried updating GMS2 to latest stable version(v2023.11.0.157) and restarting my computer. Before this bug occurred, I did the following: I saved my project to Git and then...
  17. Y

    Making an extension in game maker

    I've become interested in the idea of making an extension in game maker. I want to make one where I can access the image where all the sprites are placed within the program itself and edit it in program. I'd also like to modify the sprite creation tools. I understand this probably belongs in...
  18. T

    GameMaker Help with Variable definitions

    Hey people! I have an parent object caled obj_enemy. In this object, I created 4 variables that contains my enemy sprites. (in all 4 directions). After this I created my first enemy. So I used the "variable definitions" of the object (that is right under the physics). In the variable...
  19. J

    GML How to change object with no sprite to object sprite that created it?

    When an object(with sprite) creates another object(no sprite) How can I make the object with no sprite be set to the one it was made from. I need this one object with no sprite to do this to multiple different objects.
  20. DrStupid87

    GML [SOLVED] How to find the correct sprite index?

    Edit: Solved. Thanks to Simon Gust for the information about not needed to rely on asset_get_index(). Just needed to use the sprite names instead. Looks a lot better now --------------------------------- Hi, I've got an isometric map. All of the tiles on it are stored in a global array. I...
Top