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

[转载发布] Improved Pathfinding

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

    连续签到: 2 天

    [LV.7]常住居民III

    5778

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 昨天 08:02 | 显示全部楼层 |阅读模式
    SFG_ImprovedPathfinding
    by Solarflare Software


    Introduction

    The default pathfinding used when navigating with the mouse is really bad for maps with lots of twisty passages, and it doesn't properly handle a number of edge cases such as bridges or "pseudo-obstacles" (ie, obstacles that'll go away the moment you interact with them, like a door you can open).

    This plugin improves the algorithm and offers a plethora of customization options for the pathfinding. What it does not do, however, is apply any of this to the movement of events. If you need smarter movement for events, you can use script calls to make events use the pathfinding, or find another plugin that's complementary to this one, such as Shaz's Smart Pathfinding.

    Features


    • Fine-tune the accuracy of the pathfinding to better fit your maps. For example, this can allow pathing to work even in a complex maze as long as a path exists.
    • Support pathfinding through teleportation events that do not change the map – the pathfinder will recognize that the teleporter is the shortest path and move towards it, though it will stop after passing through.
    • Pathfinding can be configured avoid various soft obstacles, such as damaging floors, ladders, bush tiles, specific regions or terrain tags, transfer evens that change the map, or even unusual objects represented by custom events. You can specify how hard it tries to avoid these things by customizing the cost of entering each one.
    • Pathfinding can understand the presence of bridges – tiles that can be walked either over or under, depending on which side you enter from. Supports 3 different common ways of creating bridges – tileset swaps, events, and the OverpassTile plugin.
    • Pathfinding can be configured to chase the event clicked on as it moves, instead of sending the party to the location the event was on when first clicked.
    • Pathfinding can be configured to understand one-way passages controlled by events, or passages where one direction is easier than the other.
    • Events can be configured to not interrupt pathfinding when the player crosses through them. Useful for doors for example.

    How to Use

    Simply download the plugin file and install it in the plugin manager underneath SFG_Utils (which must be downloaded separately). It's plug and play, so you can try it out right away. There are several parameters that can be customized and various note tags; these are all documented in the plugin help.

    Download

    You can download it either from the forum attachment or from itch.io.

    Terms of Use

    • You can use this plugin in commercial or non-commercial games, free of charge.
    • If you use this plugin, you must mention me in your game's credits. You can do so as "Solar Flare" or "Solarflare Software".
    • Feel free to modify the plugin however you need for your game. However, if you modify it, you must add your name to the
      1. @author
      复制代码
      field (leaving my name in as well) so that it's clear that it was modified. You may distribute the modified version either privately among team members or publicly alongside your game, but you may not post the modified version publicly on its own.



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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 03:51 , Processed in 0.107705 second(s), 58 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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