kingxjosh01

Warper
Member
Joined
Jun 17, 2021
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMXP
Hello! I am new to the engine and not very informed on coding so I'm confused about the scaling of sprites in-game. I know a sprite sheet has to be 4x4, but the sprite is way too big in-game. I would like to scale it down without losing the detail of the image.

The sheet I'm talking about:
TEST Sprite-sheet
(File too big to upload to forums)

I've been looking in the Sprite_Character script, but I have no idea whether this is the right direction. I've been reading the Contents in the help tab as well.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,801
Reaction score
14,970
First Language
English
Primarily Uses
RMMV
Is that your own sprite that you have made yourself?

The help file will tell you what size they should be. You could also export some of the default ones and see what size they are.
 

kingxjosh01

Warper
Member
Joined
Jun 17, 2021
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMXP
Yea I drew the sprite in Photoshop. Just to test if the size would work. I'll have to look a bit more in the help. There isn't a way to scale sprites in-engine?
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
372
Reaction score
144
First Language
English
Primarily Uses
RMXP
You need to rethink what you're doing here. You're expecting a 3632x10236 character sprite sheet to be used in a game engine that defaults to a 640x480 game window. There is a built-in property for sprites to adjust their zoom levels, but it's a rudimentary nearest-neighbor implementation, so it's going to look extremely pixelated.

When it comes to scaling images, always use a third-party tool. Don't rely on the engine (especially RMXP) to do it for you.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,279
Reaction score
8,360
First Language
German
Primarily Uses
RMMV
I think you should read the following tutorial to understand how the sprites work in RM

and no
I would like to scale it down without losing the detail of the image.
it doesn't work that way.
details means the number of pixels. scaling down means reducing the number of pixels.

scaling down REQUIRES losing detail, because it will lose pixels.
 

kingxjosh01

Warper
Member
Joined
Jun 17, 2021
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMXP
I think you should read the following tutorial to understand how the sprites work in RM

and no

it doesn't work that way.
details means the number of pixels. scaling down means reducing the number of pixels.

scaling down REQUIRES losing detail, because it will lose pixels.
I've given it a read and I'll try to apply the calculations to my work and downscale them in external software. Thanks for all the help!
 

kingxjosh01

Warper
Member
Joined
Jun 17, 2021
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMXP
So I used photoshop and tried to stay inside that 640 *640 window size and I got a sprite of 66x193. Now the entire sprite is shown on-screen. Now I believe I'll be able to get away with this size in-game as long as I make my tileset confine by the character size.

New Test Sheet
 

Latest Threads

Latest Profile Posts

So apparently the surprise Google Search page browser game saves your progress when you close the browser.

This really makes me miss the golden age of Flash gaming.
ohh man im ending oneshot now (im doing the last stepping puzzle rn) and the music is so...sad...like...ive been thinking recently about how fast moments pass and...my anxious thoughts combined with that music and nostalgia...like...im comfortably sad...and want to cry internally
We're playing one of the Touch the Stars game jam entries, come join us!
Wait wait wait. Is watermelon a fruit?
Huh, 7k downloads of my ****ty icons. That's more then I ever expected xD

Forum statistics

Threads
113,551
Messages
1,075,786
Members
147,547
Latest member
frgmthbrd
Top