How to scale a sprite down, but kep its details?

I tried to do “sprite scale” extension, but it removed the detail. Here’s the link:

try to scale it up or down by whole numbers like 1,2,3,-2,-3,-4 but it probably would look better scaled up then down or try the scaling extenison

I may be wrong, but I believe that one pixel will always be one pixel, so there is no way to “scale down” your character without losing some pixels and detail.

One option would be scaling everything else up; that is, increase screen resolution and resize all other assets. However, that would probably be quite annoying and would also slow your game down and make it unplayable on hardware.

Anyway, like I said, maybe I am completely wrong and there is a better way to achieve what you want here but that’s how I see it.

–DogSquid

2 Likes

You can’t. Makecode is pixel perfect, meaning that sprites are always at the same resolution, so you can’t make it so a certain sprite has smaller pixels. You have to simplify the player character a bit…

3 Likes

it’s technically impossible to scale it down without removing it’s detail, unless you scale up the screen. the screen always has the same dimensions, but in Javascript you can do

namespace userconfig {
	export const ARCADE_SCREEN_WIDTH = ...
	export const ARCADE_SCREEN_HEIGHT = ...
}

The default screen size is 160x120. If you do end up scaling the screen size, it would make sense to use larger tiles in your tilemaps, I think makecode supports up to 32x32 (there probably is a way to have bigger ones). Also, generally people have the sprites scaled down a lot, aka what’s called pixel art. Having bigger sprites often makes people expect them to be more detailed, so that’s why people here stick to pixel art. I would ask @richard for more info though!

1 Like

use the sprite scaling extension and then you can scale down the sprite how you want it