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

[转载发布] Battler Flipbooks Core

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

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Battler Flipbooks Core (Ver. 1.0.0)
    Tamschi


    Introduction
    This isn't a readily usable plugin without further JavaScript, but instead a framework to write easy-to-use battler sprite animation plugins with a common extension API and seamless interactivity between them.
    It mainly lends itself to subdued cel animation, just out of personal preference, but it can also shake/move the sprites.

    Features
    - comes with premade plugin parameter structure templates,
    - dynamic (global) speed multiplier, including fractional speeds,
    - cycle-skipping, so e.g. an instant flinch can return to idle seamlessly,
    - three-phase (intro, loop, outro) system that allows dynamic shortening,
    - battler home position overrides, either absolute or relative, which can be animated,
    - blocks specified unwanted sprite effects and/or motions while an animation is active/visible,
    - "flipbook tags", a system to control animation transitions similarly to an animation state machine,
    - rules system with built-in filters by actor/enemy, equipment, states, switches, precompiled custom JS conditions,
    - automatic asynchronous resource caching during battle, so battles will load fast and animations won't flicker (if set to wait),
    - it's written in easy-to-read modern-ish JS with classes and comments, plus a type definition file for editor completions. No precompiler, no obfuscation.

    Example Video
    (This is a bit older, so there are one or two glitches you may notice.)


    https://www.youtube.com/embed/BhQtSk5ct7s
    Implementing what's shown requires additional JavaScripting, namely hooking the engine to start and stop animations in response to gameplay events and a system to add sound effects to animations. It's a combination with mostly unreleased plugins that I'm still working on, basically.
    If you wait a bit, I'll publish "Battler Flipbook Events Core" for free too, which can handles most shared aspects of frame-perfect animation callback note tags. I still need to polish and document that one before release, though.

    How to Use
    I've included instructions for how to write controller/"layer" and general add-in plugins in the itch.io page and help text, so I won't fully repeat them here.

    In short, for layers you'll want to extend most Core classes into your custom set of classes (even if unchanged, as it makes debugging easier), recursively decode the rules array from your plugin parameters into JS objects (there's a helper function included) and map it into rule instances (just call the constructor), then instantiate your derived runtime class. In terms of JavaScript, this should be around 20-30 lines of boilerplate maybe. Remember to include super. calls in prototype method overrides to work well with add-ins!

    Add-ins that affect all layers should be written more like traditional MV/MZ plugins: Overwrite the Core classes' and Core API functions with your versions as needed. I've included a makeHook function in this Core to make this more convenient where you'd like to publish an adjustable override from your plugin, though I don't recommend it for very-frequently-called targets.

    Demo
    This plugin doesn't provide any plugin commands and by itself doesn't noticeably affect the game at all, so a demo project doesn't seem applicable. The included plugin parameter structure definition templates come with drop-down values, number limits and help text that should make using them easy and reliable, though. (Please tell me if anything is confusing!)

    The intention there is for layer plugins to not require any note tags or further scripting at all, or to make that the default if at all possible at least.

    Script
    This plugin is over 3.5k lines long (+ another ~1000 for the .d.ts) and will receive updates, so I hope an itch.io link is alright. You don't need an account to download this: Battler Flipbooks Core MV + MZ

    FAQ

    Q: Which engine versions does this work with?
    A: The plugin is tested with both RPG Maker MV 1.6.1 and RPG Maker MZ 1.6.1. Same file, just a few if-conditions to account for the differences.

    Q: Any known incompatibilities?
    A: None. I don't think this can outright conflict with anything, as all engine hooks are at least semi-transparent. I've included some optional compatibility tweaks that adjust certain plugins' functions for an extra-seamless result, too, like using the fallback sprite size when measing it from YEP_BattleEngineCore, but not for pointer interactions, for example.

    Credit and Thanks
    - This plugin: Tamschi
    - Inspiration: Masahiro Sakurai - Attack Poses [Animation] (YouTube)

    You don't have to credit me specifically when including this in your games (though it is appreciated).
    Just don't mangle the included license text and, if you edit the file, add comments clearly pointing out your changes. I tried to make sure the latter isn't necessary, though.

    Author's Notes

    I made this thread purely to announce the Core, since I'm certain that this can be very useful even without any of my controller or add-in plugins (which are/will be paid. This whole thing is in the hundreds of hours of work, so I charge a little for the "this is professional-grade end user software" experience. Hope that's okay).

    Commercial use is allowed! Please see the included license for details, but it's quite permissive. I basically want you to not mangle the license and to declare modifications you make to the file when shipping it with your game(s).

    Since this is a Core with an open extension API, you can also re-host the plugin as long as you link back to my page properly. See the license for details.

    I forgot to include a term allowing free use of the included plugin parameter definition templates in the initial release. I'll publish an update with that included by the end of next week, but for now:
    Additionally to the license terms included within Battler Flipbooks Core Ver. 1.0.0, you may copy and relicense the plugin parameter structure definitions in the TS_Battler_Flipbooks_Core.js file (That is: the block comments beginning with `/*~struct~`), as long as you, nearby in your plugin source code, mention their origin and point out your modifications.
    Click to expand...

    That should do it, sorry for the temporary inconvenience. I overworked myself a little giving this the final layer of polish before release this week, so I'm just a bit too tired to formally publish an update this weekend.
    This is fixed now. You can find the updated license text directly on the itch.io page.

    Please let me know what you think and thanks for having me!


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 04:53 , Processed in 0.125276 second(s), 51 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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