sprite

  1. Alaska Minds

    Object Sprite Direction Tutorial (8 Directions)

    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...
  2. 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...
  3. 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...
  4. 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...
  5. 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)...
  6. 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...
  7. 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
  8. 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...
  9. 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 =...
  10. 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...
  11. 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...
  12. 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...
  13. 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
  14. 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...
  15. Cupid Stunt

    GMS 2 [Solved] Programmatically number sprites

    I'm working on a math learning game that uses tiles for the potential answers as well as the questions. The range of the answers is 0-19, so it was easy to make a single sprite that had all of the numbers on different frames. Then to use the image_index to set the number and store which number...
  16. Architheutis

    [Solved!] Collision mask to be changed

    Hi there! I`m still in final works of my game. I remarked a simple, but annoying problem: My jump`N`running idle does everything he should. So far so good. But if I duck, he goes down on ground, to dodge incoming enemies. But because of a line in the code within my Player-object, the ducked...
  17. R

    GMS 2 This may be too hard but... Help with player drawing sprites?

    Just wondering if there's a way I could setup some kind of box where the player could draw out their own sprites to use in the game? I think it would add an element of fun to my project... also since I'm not a great artist people wouldn't have to suffer with my stickman like art haha.
  18. DarthTenebris

    GML Animation

    Hello everybody, It's been a quite a while since I last spent time with Game Maker, and I've definitely gone rusty. I'm trying to get my player animated when he is walking and stop when he isn't, but so far it's not working, and I have no idea why. // obj_player Create Event: sprite_index =...
  19. Cofefe

    Image Editor

    Hi all, I've been using Game Maker Studio 2's built in sprite/image editor a while now as I work on my current project which I *might* release some day. I'm immensely impressed with it compared to GMS1.4's, which was inferior to even MS Paint. However, I know a lot of devs use other tools for...
  20. tobiasgjerstrup

    GMS 2 [Solved] how to change image_index for a drawn sprite?

    hello guys. I was wondering how you change the image index for a sprite that you draw (not the sprite associated with the object)
Top