scale image

  1. Chreech Okash

    GameMaker Textures_Global_Scale is poor quality!

    So I tried using Textures_Global_Scale(2) and it seems like it is making some frames very blurred during the animation cycle. I also tried scaling down animation manually using image editor and it looks better and consistent. So my question is are these scaled down textures stored somewhere...
  2. Dilawlaw

    SOLVED High resolution sprites on upscaled low res room

    Hi everyone, I am not sure this is the right forum to ask this question so please guide me if I am mistaken so I am making a super low res game, with 8x8 sprites, my view in the room is 256x192 ported into a full HD 1920x1080 screen, till now I had no problems, but lately, I have been trying...
  3. Tete-chin

    GameMaker GML Visual Examples for Beginners (movement, collisions, etc.)

    GM Version: v2023.2.1.75 Target Platform: ALL Download: No download Links: N/A Warning: The audio is in Spanish but you can activate the captions with translation. It translates well. Select closed captions (cc) tool, then select settings / auto-generate / language choice. First lesson: How...
  4. Tangerine

    Shaders Stretch the yscale of a sprite while keeping it's position.

    Hello! I would want to stretch different images based on their alpha value, however not sure how to keep them in the same position when they are stretched. Any idea about how could I achieve this? I need to keep the bottom vertex of the sprite intact too as I only need to squish down the sprite...
  5. DarK_SaCoR

     Tex filter

    Will we ever have an anti-aliasing filter that can be applied to a scaled surface? Currently the only filter I know that is active is the function: "gpu_set_texfilter". But as the documentation says, if the sprite is not at 1:1 scale, it will not work well and it will look like this: Now...
  6. JeanSwamp

    image_xscale/y_scale display_get_width related

    Hello Anyone has some tip for adusting image_xscale and image_yscale values to scale a bit with aspect ratios? Since mobile devices portrait mode go from a standard 1080p width, a lot use 960 and sometimes even more narrow. Most of the time this is fine, but for some UI buttons, I'd like to...
  7. anima

    SOLVED setting a enemies scale according to distance

    hello so i am making a game and i need to make enemies scale according to their Y cord (like higher Ycord less scale and moreYcord less scale) and they spawn in random y positions so i cant just use if vspeed>0{vspeed+=0.10} if vspeed<0{vspeed-=0.10} please help
  8. wilmer

    Is it possible to scale a sprite that is used as a collision mask on an Object from code?

    Hello everybody: I have the object of my Character and assign as a collision mask a sprite that measures almost the same as my character, but there is an animation where my character must crouch (I do not know if it is the most recommended), in this case I would need the sprite of collision...
  9. W

    Problem with image scaling

    Currently, I'm scaling a sprite on the x-axis differently than the y-axis. (Example: image_xscale = 3; image_yscale = 4;) It's distorting the image in ways I don't want. How it looks: How I want it to look (this image has the incorrect x-scale. I basically want this image but with a scalable...
  10. sinigrimi

    GameMaker sprite sizes = performance?

    Hello! The question is about the size of sprites, how big can they be done without losing a lot of performance? I tried pixelart and this is definitely not enough to realize my intentions, but I don’t feel like making a game exclusively for powerful PCs. Share your experience, please
  11. S

    SOLVED: Scaling a created object

    Hi , I wanted to create an object in room but I want it to be bigger and tried it with this code: instance_create_layer(320,320,"Text",oPlayer){ image_xscale=3 image_yscale=3 } I thought it will scale the object to be...
  12. YoSniper

    Legacy GM [SOLVED] draw_sprite_ext leaves trace of erased color as outline

    So, I'm working on a game that is very cutscene-heavy. In this particular shot, the camera is slowly zooming in. The character's body, arms, and head are each their own sprite, and they are drawn at a scale > 1. When I created the sprites in the editor, I used magenta as a marker color for...
  13. Y

    Discussion Working around texture page limitation 1920x1080 with upressed pixelart(situation inside)

    Hello community I’m making a game with mostly pixel art, where I basically want to upscale pixelart assets to keep the pixel look intact even in 1920x1080 aspect ratio.* (I explain why soon) As example that means I made my player character 25x25px but upscale it (nearest neighbour) to 50x50...
  14. M

    Formula for scaling down an object

    I'm trying to figure out the formula to this problem. Object A will move to the location of Object B. Object A will move to Object B with a set speed, and also scale down to a set percentage. Object B is stationary. I want to find out the scale down rate required so that Object A reaches the...
  15. bsabiston

    Any way to smoothly scale down drawn graphics?

    I'm trying to programmatically create some sprite buttons using the draw commands. But they are jaggy and I'd like them to be antialiased. I thought I would draw them at 4 or 8 or 16 times the size I want into a surface, then scale that down to the final button sprite/texture. But so far it...
  16. T

    GameMaker [Solved] Turn off anti-aliasing on scaling and rotation

    I'm an experienced user with previous version of GM, and am trying out Studio 2 during the promotion thing this month. It's pretty different, but so far it's been going OK. However, I noticed a horrible anti-aliasing effect on all my scaled and rotated sprites after importing my game. Here's an...
  17. W

    Legacy GM [Horrible] draw_sprite_ext and surfaces problem in android

    Hello, I have a project that creates pages for a book and shows them, it works perfectly fine on windows. This is the problem: On android the scale is wayyyy off on the images for the pages in the book, but somehow the size of the page's sprites are correct. Here's pics to illustrate what...
  18. G

    Gravity / Scale / Score - Help please

    Good afternoon, how are you all? My first post in the forum. I would like the help of you to solve three problems that I am not getting. First of all, I'm new to GameMaker, programming as well. So thank you for helping me step by step. First I need help to sort out the pull gravity of an...
  19. X

    Making buttons

    Alright, I'm making some buttons for a start menu. The buttons themselves are aren't drawn, but their text is. I tried to resize the buttons to match the size of the string they hold. My resize code is: //in the create event image_xscale = string_width_ext(button_string, -1, -1) /...
  20. C

     Sprite editing behavior is strange.

    I wrote a bug report on this because it took a while to figure out the cause of the problem, but now that I know what's going on it looks more like a strange design choice. In the menu for a sprite, there's an icon under "Image:" and "Size:", right next to the width and height of the sprite...
Top