I’m making a 2D pixel art game and I want to avoid having any sprites get ‘stretched’ or ‘squashed’, where some pixels look strange and the overall art is ruined.
As part of this, I want to enable some sort of ‘pixel snap’ camera, so that when I move a sprite, it snaps into a pixel perfect position when stopped - rather than stopping wherever it naturally would, which might be in the middle of a background pixel.
How would I go about setting this up?
Thanks
EDIT: window resolution is set at 320x180 (so it can scale nicely to 720 and 1080), resizing is disabled and scaling mode is set to ‘nearest’. Problem is occurring anyway.
Hi, my bad - I should’ve sad in my original post that I’m already using a small resolution. When testing, I scale this up to full screen and it has these issues.
If your base resolution doesn’t scale appropriately into a larger 16x9 (or 4:3) resolution, your art will always be stretched/squished.
In general, that would mean your “small” size game resolution should be either 320x160 or 640x320 for 16:9, or 320x240/640x480 for 4:3.
If you’re using some other version at a small resolution you’ll run into issues.
I’ve tested 16x16 base art scaled up from 320x160 and don’t have any squishing or blurrying while moving.
I am new to Gdevelop5 . So how can i make (the pixels of an image is in collision with a box are invisible while the other pixels of the image are visible ) .
I know about Z order and with i can make the image under the box ,but I wanna know if i can do the pixels thing in Gdevelop5.