sprite

  1. 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.
  2. 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...
  3. M

    Center problem

    I have a gun object, and I want it to always point at the mouse, that’s why I have it’s origin in 11x8, and I want for it to spawn an explosion effect every time it shoots (left click). I want the explosion to spawn at 27x4, but I don’t know if I can have a second origin. If I just spawn it on...
  4. David Lorenz

    SOLVED Radically change a Tileset's sprite. Are there ways to minimize the messing up?

    Hello, everyone! I am revamping an old project and one of the many things that it needs is a better optimized tileset sprite: The old one has a LOT of wasted space and tiles that are pointless considering that GameMaker allows to mirror and rotate tiles while drawing rooms. Before I start...
  5. PsychicParrot

    GameMaker Replacing/importing a new sprite for a tilemap doesn't seem to replace the image on the tileset properly..?

    I'm using GameMaker 2023.8.0.98 Runtime 2023.8.0.145 on PC. I have a tileset in my game. I like to modify it from time to time, so I re-import the tileset sprite. The sprite updates normally, then the tileset seems to have updated... until I re-open the project or run it in an exe, when it...
  6. M

    Sprite doesn't exits...?

    After the last update, I've been having an issue with sprites. It happens randomly while working. All of the objects will display this white image with a red x instead of their assigned sprite: Then, if I run the game the following error occurs: ___________________________________________...
  7. DrStupid87

    SOLVED Why are my tiles are being replaced by the wrong sprite?

    Hi all, So in my project so far, an isometric map gets rendered: The buttons at the top raise or lower the z height of a tile that is clicked on. A script I have looks at the tiles surrounding the tile that was clicked and should place slopes around it like this: The problem is that it...
  8. O

    GameMaker Get all the sprites from the included folder

    I have two "sprites" folders with files that have the same name one low and one high quality. How do I get all the sprites from the "included" folder if the player clicks the "Low" button? Without having to write one by one there are hundreds! And when you click on "High" it goes back to the default
  9. D

    Asset - Scripts [Free] Sprite Animation Manager

    Sprite Animation Manager Hey fellow game developers! I wanted to share this asset I recently created called the Sprite Animation Manager. Initially, I developed this asset to meet my own needs for efficient multiple-sprite animation management. However, realizing the potential it holds for...
  10. B

    Sprite resolution

    hi! I made some sprites on gamemaker 2 and they look fine until I run the game, when I run the game they appear really blurry I’ve looked at many forums and tried things but nothing worked (If you need any details to help me just ask)
  11. A

    SOLVED Sprite hitbox doesn't collide with "precise per frame" except for the first frame

    I have this strange occurence where the hitbox of the instance doesn't collide with another specific instance. The only time the instance's hitbox "connects" is on the first frame. - Any frame after that does not connect. - It doesn't matter if I adjust the position of the hitbox to where the...
  12. G

    GameMaker Corruption eating all my sprites

    this started when I was modding pizza tower and I wanted to add a new rank so I went to the ranks sprite and was about to import my rank icon when I realized the layer icon on the P rank (Usually a purple P) was an eggplant on the layer icon so I turned the layer off and on and suddenly the P...
  13. MaxCC

    Weird sprite behavior.

    Hey guys! So, I'm following a tutorial about a Top Down RPG/Shooter, I managed to make the wand sprite rotate around the character, yet, it deforms when doing it. I'm aware that diagonal pixels doesn't exist haha, however, in the tutorial, the sprite doesnt deform, it just rotate like its...
  14. Minimaul

    GameMaker New particle system square sprite

    Hello, I'm testing the new particle system, and I faced an issue: I created a particle system with one emitter using a custom sprite. When viewing it in the editor, it works fine But when putting it in a room (via code or drag and drop), the sprites are replaced by full squares. Do you have an...
  15. J

    Having issues with mouse cursor sprites

    Hello everybody. I am sort of new to GML and I am having trouble with changing my cursor back and forth. I have a point-and-click style game so I want to change the sprite of the cursor to a different sprite when I am hovering over something. This is in my objInteract parent object's step...
  16. D

    SOLVED Odd issue with switch statements and sprite_index

    Sorry in advance if this post is a little confusing, but this is the best way I can think to describe the issue I'm having. I'm using two state machines in the same object to switch the sprite of the object using sprite_index. However, only one of the two sprite_index statements actually works...
  17. Chimerabot

    Question - IDE [SOLVED] Problem with sprite antialiasing on non-integer coordinate values

    Upon starting a new GMS2 project and porting code from another, pre-existing project, one of my sprites seems to be automatically getting some sort of unsightly antialising when it's on non-integer coordinate values. The effect is demonstrated here, where the player sprite becomes extremely...
  18. jjjjj

    SOLVED Instance draws text but not sprite [Solved]

    SOLUTION The Challenge I have instances of an object that can successfully draw text and rectangles, but will not draw self or other sprites. I haven't run into this issue at all before (I have several other objects drawing just fine following the same model) and I haven't been a good enough...
  19. P

    Drawing a shadow for a sprite

    Hi everyone, I just need a little help creating a shadow for my sprite. I'm making a a sprite get large in the air, to give the illusion of height. I want to have a shadow under it that slowly displaces as the sprite gets "higher" and have that shadow go back underneath it as it lands. Here's a...
  20. D

    SOLVED How to draw sprites in repeat loop

    how do I draw sprites in a loop if global.startup == true { var i = 0 repeat(global.buildings) { i += 1 //var B = real(Buildings[$ buildK[i]][$ "sprite"]) show_message(i) draw_sprite_stretched(house1,0,50,50, 32, 32); }...
Top