1. kronotic

    Why do my sprites look terrible when they are rotated?

    I am making a game in Game Maker 8 where an ant follows your mouse and so it also rotates to wherever your mouse is. The sprite image starts pixelating and looks horrendous when it is moving in a diagonal direction. It looks fine when the ant moves straight up, down, left or right: but any...
  2. sv3nxd

    SOLVED draw_sprite_general weird behavior

    I draw a sprite rotated and horizontally flipped. I do it with draw_sprite_ext and with draw_sprite_general, but I get a different outcome with each, despite having the same variables. With draw_sprite_general, flipping the sprite seems to set the origin to center? I don't know and I can't...
  3. S

    How to generate collision masks for each sprite part?

    For my animations, I'm using a sprite sheet. This means that I use draw_sprite_part() and just change the X and Y to essentially move through each box in the row for it to look animated. I am trying to implement a hitbox and am having trouble generating the collision masks. I have a separate...
  4. BenSunhoof

    SOLVED Spawning an endless line of objects moving outside the room borders

    I'd like to create an endless line of rock objects that create an illusion of a moving floor. This is what it's supposed to look like, only the rocks should stretch throughout the duration of the run. I have two separate objects: obj_rocks for the rock itself and obj_rocks_create for the...
  5. C

    Sprite resized and partly destroyed after placed in room

    I placed an object of an animated sprite in a room and tried to resize it to the size of the room (480x480). When I changed it back to its original size (64x64) it had lost around 20% of the original pixels around the outside of each side of the sprite and I can't seem to get them back. When...
  6. William Garrison

    GMS 2 Particles Not Showing the Sprite

    So I have a system set up, but I guess something is setup wrong or missing... I have some leaves I want to fall from a tree when its shook. Currently I have the tree shaking and the particles do work. But the particles that are showing up are just blurry white orbs (im guessing a default of...
  7. Alaska Minds

    Object Sprite Direction Tutorial (360/45 = 8 octants)

    GM Version: Studio 2 (Possibly later versions of Studio 1) Target Platform: Any Download: None (Code below) Links: round(), point_direction(), switch, sprite_index, image_speed Summary: Hello all I'm going to show you how to change your Object's sprite, based on direction. It all starts...
  8. Andrew Simms

    GMS2 Can't recreate collision bug, but it still exists

    So I have this little arcade enemy swarm game. The combat system is that when you press the button, the protagonist is unmovable but summons a magic spell that you can then control directionally and detonate over nearing enemies to clear them. This will then create an orb object that shoots back...
  9. Z

    GML Trouble with Enemy Attack Sprite Manipulation

    I have just completed the wonderful GML2 Complete Platformer Tutorial series by Shaun Spalding on Youtube. The code is identical to how he set up his simple shooter, I have just changed the art and little details and values here and there, and everything works! However, my enemies do not have...
  10. P

    Legacy GM [Solved] Graphics Worsen After Changing Rooms

    Hey guys, I'm making a shmup that, so far, really only has one level. I recently made a title screen, but when I use the Change Room or Next Room action, the sprites for the one level's objects are in a lower resolution compared to how they look when I have the level play as the game starts...
  11. LittleAngel

    Argument in shader

    Hi ! Is it possible to pass an argument through a shader? I get it, yes, but I don't really understand. I have a shader who colors a sprite in red: varying vec2 v_vTexcoord; varying vec4 v_vColour; void main(){ gl_FragColor = v_vColour * texture2D( gm_BaseTexture, v_vTexcoord)...
  12. S

    sprite gets stuck in wall

    hey guys, while i was trying to figure out my jump sprite i decided to try and copy paste someones code, it helped with the jump sprite, but when when the character spawns, it falls down and lands in the middle of the wall and i cannot jump or move. i took out tiny areas of code and this is the...
  13. sinigrimi

    GMS 2 changes in the angle of the collision mask (rotation of the collision mask)

    can i change the angle (rotate) the collision mask? or do i need to change all sprites? :( screenshot below
  14. O

    GMS 2 [Solved] Rotate Around Point Other Than Origin

    Okay, so I have a character model with a separate head and body sprite. The sprites are the same size but the head sprite is transparent where the body would be and the body is transparent where the head would be. The reason for this is that I want the head to be able to rotate independently of...
  15. Pompadour Dude

    GMS 2 (SOLVED) How to combine string variables?

    Hey guys, I am working on one of my games and I want characters to change clothing (head / body / legs) separately. I want to use three string variables. For example: headSlot = "some var" bodySlot = "some var" legsSlot = "some var" These variables can be equal to clothing type: bodySlot =...
  16. TorradaIsToast

    GMS 2 Sprite masks [SOLVED]

    I've been messing around with blendmodes and image manipulation on GMS And I'm trying to create a simple system that makes the part of an overlaying object to be transparent. Here's a rough sketch of what I want I've tried to use blendmodes and "gpu_set_colorwriteenable" but I can't seem to...
  17. B

    Windows Sprite Color Issue

    Hi ! My problem seems to be in link with Windows 10 but I don't know, when I draw a sprite (re-imported most of the time), the real sprite color seems to be replaced by a strange blue, I removed everything in the room except an empty object with a color gradient sprite and it's doing the same...
  18. D

    GMS 2 Import Texture Atlas from Spriter Pro

    Hey all, recently started working with GMS2, lots of fun compared to other engines, but already encountered a problem I can't solve on my own. Hope for some good advise :-) I want to select animations and modify skeletons of my sprites in the engine. Apparently GMS supports importing a JSON...
  19. rawket

    GMS 2 Help with sprite change on asset layer

    So in an object I have this code for room start if areas_coastal == "burned" { layer_sprite_change(layer_sprite_get_id("buildings", "spr_diner1"), spr_diner1Burned); } It runs but the sprite doesn't change
  20. jjettii

    GML Issues with wall collision, related to sprite index??

    I'm having an issue where my player sometimes gets trapped by a wall and can't move. This only occurs when meeting with a wall to the left or right, at this point the player can't move up or down. The issue doesn't occur when meeting to a wall above or below the player. The strangest part of...