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

[制作教程] Jumping

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

    连续签到: 2 天

    [LV.7]常住居民III

    4461

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-6 21:26:20 | 显示全部楼层 |阅读模式
    **Note** This Tutorial is not meant for new users. It would be a waste of time to type out every step... since most of the steps are very similar. Plus, this tutorial is not about jumping. It's about learning how to use Region IDs in a greater way... since very few people use them to their full potential.

    So I'll just provide you the knowledge that you need, and leave it at that.

    -This tutorial will hopefully shed some light on how remarkable Region IDs can be. Very few people seem to use them to their full potential.

    ============================================================================================================================

    ============================================================================================================================

    "Jumping"



    Info:

    -This tutorial will show you how to check what Region ID the player is on, in real time, and use it as a condition.

    Requirement:

    Yanfly's "Button Common Events" script: http://yanflychannel...-common-events/

    For details on set-up, read the header of the script.

    1. Set up an event, as seen below:

    Spoiler



    Things to note** It must be Parallel Process.

    -----What is Parallel Process? It is where an event is essentially "looping". It is best to use when you need to regularly check a Variable. So in this case... I have v[0001] receive the Player's X coordinate, and v[0002] receive the Y coordinate. I then "Get Location Info" (in this case, Region ID) using the the Player's X and Y as destination for the 'check' and have v[0003] receive that data.

    This step is important, because branches that we set up later will need to check these Vars constantly, and the variables must be "current" or updated to ensure that everything goes smoothly. With this set-up, v[0003] will always contain the Region ID that the player is on at any given time.

    You can imagine how useful this is. You can now set up events (parallel process, or otherwise) to pull v[0003] for whatever you want. For example:

    1. Custom pass-ability.

    2. "Proximity" processes that, for example, will reveal chests or items (or make a sound... like Nirnroot) once you're close enough to that item (on a certain ID).

    3. Say you want your character to have a bonus in Tall Grass. You can mark that tall grass with an ID, and have an event to check that ID. If on the tall grass, a skill/state/buff can be added.

    4. Custom sounds scape. Set up IDs for water, grass etc. and have a sound play while on that ID. Such as splashing, or rustling.

    The list goes on and on. Really... any event you can imagine, can be triggered by ID.

    2. You will want to set up a common event, as seen below:

    Spoiler



    Things to note** Make sure that the trigger is set to "None". Ensure that you set the player to "Through" during jumps to the left and right, as it will allow the player to jump in front of trees, walls etc (assuming there is no ID restricting it.)

    -----What does this event do? Well, I first want to say that this is only one of 6 Branches set up (each independent of each other). As you can see by the comment, it is for Jumping to the Left. This event first ensures that the Player is not on a restricted ID (in this case, ID !). Why does it matter if the Player is on any given ID? Because I've placed Region IDs along the edges of "un-jumpable" things, such as Buildings and walls. If the player isn't on a restricted ID, the jump begins. A simple "Move Upper Left". At this point, it checks again to see if the Player is on ID 1. If not, the jump concludes with a "Move Lower Left". Note** If the player ends up on ID 1 mid-jump, it will simply move the Player down one tile to simulate hitting and sliding down the wall.

    3. Place your Region IDs

    Spoiler



    As you can see... I've used ID 1 to restrict the Sides, and Top of areas. Restriction depends on the direction the player is facing. I've used a separate ID for the bottoms of things. This is because if you were to jump, while beneath ID 1, it would see you as facing left or right and treat you ask if you where trying to jump into a wall (perpendicular) even though you're moving parallel to i.t

    4. Assign a button (in Yanfly's script) to your common event.

    ============================================================================================================================

    ============================================================================================================================

    That is pretty well it. You can also set up additional IDs (see ID 63 in screenies above) to allow specialized movement. So, with the passage along that wall (removed a couple ID 1s) I can jump up onto that wall. Once on the wall, I could jump off it at the end (or you could simulate a "climb/ladder" event).

    So you can do all sorts of cool pass-ability/movement tricks with Region IDs. For example, you could make an Assassin's Creed clone, with jumps and climbing.

    If any of this in unclear, please let me know. If you have any questions, or need more info on a specific area, don't hesitate to ask!

    .


    本贴来自国际rpgmaker官方论坛作者:Levi处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/jumping.3402/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-14 16:52 , Processed in 0.072799 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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