设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 73|回复: 0

[交流讨论] How to create your own templates (any sprite or battler sheet)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4435

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22877
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28206

    灌水之王

    发表于 前天 19:10 | 显示全部楼层 |阅读模式
    Time and time again people who want to create their own sprites are asking for pre-made empty/framed templates because they can't work without them. And they don't even understand how limiting that is.

    Templates are crutches - bad crutches to be precise, because if you need a premade template then you're drastically limiting what you can do with the engine. Because the engine itself doesn't use such templates, it uses mathematics.
    Limiting yourself to premade templates is the same as saying "I only want to learn addition and subtraction, I have no need for multiplication". And yes, that is similiar in how far you would be able to go in real life without knowing how to multiply? A basic shopping trip would become a problem...

    With this tutorial I want to show you how to create your own templates - of any size, because all modern RPG-Makers accept and handle sprites of any size.


    1) Cell and Cell Size
    The first step is to learn "what is a cell". If you have read around the resource forums and especially resource support, you might already have heard about that term.
    Basically a cell is that space on any spritesheet that is dedicated to one single version of the person or object to be displayed on that sprite. Usually single map sprites have 3x4 cells, map spritesheets have 12x8 cells and battler sheets (MV) have 9x6 cells - just count them on any default/RTP spritesheet.

    The size of the cell is that what is extremely important - and that can be any size you choose. It should usually be big enough to contain the entire person or object, but as small as possible (no excess transparent space around the figure). You will need some extra space because different poses will require different parts of the cell, but you should keep it as small as possible.

    Here are some default numbers:
    Ace RTP Map sprites have a cell size of 32x32
    MV default map sprites have a cell size of 48x48
    MV default battler sprites have a cell size of 64x64

    most people who want tall (non-chibi) sprites use either 150% or 200% for the size, some (for example PVGames) go even beyond 200%.
    Here are some numbers based on the more common 150% size setting:
    Ace Tall Map Sprites have a cell size of 32x48 (48  is 150% of 32)
    MV Tall Map Sprites have a cell size of 48x72 (72 is 150% of 48)

    But basically as I mentioned any cell size will be accepted by all RM-engines.
    If you want to have a titanic truck with a cell size of 200x300 pixels, then go for it. Just keep in mind that if you go too large, the star destroyer sprite of 2000x2000 pixels will usually not fit on your screen, and may cause lag to older computers (that sprites needs a lot of RAM due to its size)



    2) The sprite/battler-sheets and their definition.
    Cells are defined by their pixel numbers, but spritesheets are NOT.
    What defines a spritesheet in the RPG-Makers is the number of cells it has. I already mentioned some of those numbers in the introductions, but let's repeat it here in a full list:

    XP Map Sprites are 4x4 cells. I don't know if the rest is similiar to the following because I never worked with RMXP. To convert a XP sprite to VX/VXA you need to delete the first row.
    VX, VXA and MV Single map sprites have 3x4 cells and are defined by a $ at the beginning of their filenames
    VX, VXA and MV Spritesheets for map sprites are for 4x2 sprites and as such have 12x8 cells. Any picture without a $ is considered a 4x2 spritesheet.
    MV Battler Sheets have 9x6 cells on them. No distinction needed here

    Please note that this is based on the default 3-frame-animation of the RPG-Makers. There are scripts and plugins available to increase the number of animation frames, and that always goes hand in hand with an increased number of cells on the sprites.
    This is especially true for the larger spritesheets of PVGames DLC available in the shop, those can't be used without scripts/plugins to change the number of cells/frames the engine expects.


    3) The picture/sheet/template size
    The next step is to calculate the size for the template you want to create. For this you'll need the infos from the sections above and a calculator, because you basically multiply the numbers.

    You want a single tall map sprite for MV?
    The picture size will be (48*3)x(72*4) or 144x288 pixel - remember that you need a $ at the beginning of the filename for this to work.

    You want a spritesheet of 8 double-size map sprites for Ace for a village of friendly giants?
    The cell size would be 64x64 (double size for Ace) and the picture size would be (64*12)x(64*8) or 768x512 pixels

    You want to use an armored car of 384x96 pixels as a MV battler (with the rest of the party as 64x64 regular scale):
    The SV battlersheet would be (384*9)x(96*6) or 3456x676 pixel as picture sheet.

    4) creating the template
    These steps are usually a bit different depending on what image program you use, you need to find the exact naming of the commands (especially the grid command) for yourself.

    - open your image program and click on "new image" with a transparent background selected.
    - enter the calculated picture size from 3) as the size of the new image, for example 144x288 for the tall map sprite for MV.
    - enter the grid function of your image program and use the cell size from 1) as the grid setting. In the case of the tall map sprite, the horizontal grid needs to be set to 48 pixel and the vertical grid needs to be set to 72 pixels.
    - save under whatever name you want as a template, in this case I sugges to have the template name begin with $ to not forget that format requirement.

    If everything is done correctly, the image program will use it's grid to show the borders between the cells - much less hassle than most templates who use different background colors for different cells and require you to make them transparent as an extra work step.


    With these steps you can get any template for any cell size in any modern RPG-Maker and never be limited to the default sizes.

    And a few added infos about the use of non-default sized sprites:

    5) editor and collision
    The editor will always limit the display of all sprites to the maximum of one tile (48x48 pixel for MV, 32x32 for olders). That is because you need to be able to edit the tiles next to it in the editor - in the game the engine will always use the full sprite size, blocking what is next to the tile if the sprite is larger.

    But even if the sprite is larger, the default engine will still limit collision detection to the grid itself, with the sprite displayed bottom-centereed on that specific tile for collisions.

    That is a good default for regular sprites and tall sprites, but bad if you have a large vehicle or a long snake.
    For that reason there are different scripts or plugins for "large events" available, they have been written exactly because that is how the engine handles large sprites without increasing collision size.


    本贴来自国际rpgmaker官方论坛作者:Andar处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-create-your-own-templates-any-sprite-or-battler-sheet.113301/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 13:01 , Processed in 0.085720 second(s), 51 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表