【汉化】YEP.141 – Scale Sprites
YEP.141 – Scale Sprites
Introduction and Instructions
Sometimes we want to use sprites from different sizes other than 48×48 for our standard sprites. But sometimes, we’d also like to scale them from the actual size they’re at, too. For example, if your sprite would be 128×128 tall and you want it to appear 48×48 in-game, this plugin will let that effect happen.
很多时候我们想让角色图的大小不是固定的48像素,但是我们也希望能让不是48像素的图片在游戏里使用,例如128128的图片也能够在游戏中显示为4848
To accomplish such a feat, when naming your scaled character sprite, add the following text to its name anywhere:
为了实现这个功能,当你命名你的文件时,你需要放入尺寸来命名
[48×48]
For example, if you had ‘Actor2.png’, rename it to ‘Actor2 [48×48].png’ to make it appear 48×48 in game. Note that due to Pixi’s scaling algorithm, this effect works better when scaling down than scaling up.
例如,如果你为Actor2.png重命名为Actor2[48×48].png,那么这个图片在游戏里会显示为48*48.当然,因为MV的算法机制,缩小比放大的效果好