1. D

    SOLVED Camera center code is making sprite displace when it moves

    Hello, i've been noticing that my sprite gets displaced to whenever direction i add speed and it gets worse the higher the speed. Then i've made a test removing my center camera code and it seems that for some reason the problem happens when the camera is centered on my player. This is my code...
  2. VR456

    Legacy GM [Solved] Change position of a sprite made with Draw event

    I want to achieve a simple effect in GMS 1.4 – when a level finishes, "level_complete" sprite generates out of bounds, and then "falls" down to a certain position. I thought something as simple as a block of Draw event code (inside an object for stage control) below would work, but it just...
  3. Joifad

    Windows Animation of my character doesn't work properly

    The code I wrote is exactly like this: //Update Sprite function PlayerAnimateSprite(){var _cardinalDirection = round(direction/90); var _totalFrames = sprite_get_number(sprite_index) / 4; image_index = localFrame + (_cardinalDirection * _totalFrames); localFrame +=...
  4. FrostyTBB

    GML How to get a sprite to play it's full animation before switching

    Hello! For a few days now I've trying to set up an animation to play when I press the space bar, and I want it to go through the full animation. However, It usually only plays for one or two frames before being overwritten by the idle or movement sprites, when I'd like for it to stay there for...
  5. A

    How do I change sprite animations after picking up a weapon?

    Hello everyone, I have imported a sprite sheet featuring my character running with a weapon. I was hoping to use this animation after the player picks up the weapon object. However, I'm unsure about how to insert the animation into the code. I know it has to take the form of an if statement...
  6. S

    How to execute a sprite only once

    I'm making a 2D plataformer game, and I want when my character touch the wall, I want to execute a sprite but only once, but the sprite start a loop. Anyone can help me? I'm new on this :c
  7. Dagoba

    GML Sprite inside of a string?

    Hey, is there a possibility to have a sprite inside of a string message? I am creating a sign that guides the player and in the message it should display like: "Press X to Jump". The X would be replaced with a sprite of X, because the player could for example modify their keyboard settings and...
  8. foreverisbetter

    GMS 2.3+ [SOLVED] simple collision with rotated sprite not working

    Hello, surprisingly I didn't find the question already asked here in the forum: why is an instance running one pixel into a wall to its left when it rotated around 180° ? The sprite is 16x16 pixels, the origin is the middle center and its collision is set to be precise. the movement code is...
  9. R

    Draw GUI scaling

    Hi all, I have experienced a number of issues when it comes to drawing graphics to the HUD. The current issue I am facing is a simple sprite scaling issue. For example when I collect a gem I would like my HUD gem to scale up slightly and then back down. I seem to be having problems with it. Am I...
  10. R

    Background visible through solid sprites

    Hi all, This may be an obvious one for any of you pro's out there but for some reason my level looks transparent and the background can be seen through it. Even stranger is this only happens sometimes. I have have about 10 layers for game objects and game functions and then 7 background layers...
  11. S

    SOLVED Can I change the colour of a sprite, and save it as a new sprite?

    Hello, Very simple question: Can I create a duplicate of a sprite via code, and give it a different colour? - and how? This is to allow for compatability with some shaders that don't take into account the image_blend = skin_col line inside draw events. I'm using GMS 2.3. Many Thanks...
  12. thom

    How to prevent cheaters from editing game sprites

    Hi, The online community of my game Ultimate Racing 2D found out that people were cheating in online multiplayer. The game uses an (invisible) grass sprite to detect when someone is driving on the grass and should therefore be slowed down. However the cheaters have been able to change this...
  13. Pelican Police

    Legacy GM Is it possible to edit game maker texture pages like a surface?

    For example, if you wanted to tint/change the game environment, you could redraw all the sprites in their new form directly to the texture page, rather than doing it in real time every step using a shader or even image blend. I'm sure this could lead to other problems, similar to the problems...
  14. Dreary

    SOLVED Sprite Parts as Particles?

    I have created a disintegration effect that breaks the sprite down into a bunch of objects containing part of the sprite. It works as intended, but is incredibly inefficient. What I want to do is to find a way to make it so that I can disintegrate multiple enemies at a time without taking the...
  15. D

    (Solved) How to remove sprites/objects from room?

    I have a sprites/objects in a room that I cant double click or right click to remove it. Any advice?
  16. DGNNY

    SOLVED Get X POSITION of sprite

    Henlo on my draw GUI event, I draw an icon for an ability and draw text over it to represent the cooldown i want the position of the text to be relative to the position of the icon, but i don't know how to get the x position of it. sprite_get_xoffset returns 0 because it only gives the position...
  17. Elystia

    SOLVED [SOLVED] Black Screen on Space Rocks DnD tutorial

    Hello Dear cCmmunity, Full of envy, hope and will, I embarked on the GameMaker Studio 2 adventure. Knowing that I have no experience in computer code, I started by following the tutorial "My First Game - DnD - Setup & Movement - Space Rocks" put forward on the welcome page to familiarize myself...
  18. Jochum

    Drawing small sprites gives hard pixel edges?

    Hey Gamemaker community 🧩, Problem: I am developing a crypto game. For this game, I want to draw a number of sprites with a different scale. Drawing and resizing the sprites works well, but on the small sprites, a hard pixel edge is created. If I don't change the sprite scale (use the normal...
  19. Sargonnas

    Cutscene sprites

    Hey I've been having some issues with sprites, but I'm wondering if I've missed something. Can different frames of a sprite animation exist on a different texture page?
  20. Sargonnas

    Sprites not rendering

    IDE v2.3.1.542 Runtime v2.3.1.409 Hello all, I'm at my wits end here. Ever since one of the updates way back (I don't remember which one), some of my sprites stopped rendering. It took me a while, but I found out that if I manually added a draw event (draw_self();) it would work fine. For a...