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

[转载发布] TSR_MapJump

[复制链接]
累计送礼:
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

    灌水之王

    发表于 前天 20:23 | 显示全部楼层 |阅读模式



    Author
    TSR
    download
    TSR_MapJump

    This plugin provide a pseudo-action Jump and Fall system for your RPG games.



    How to use:
    Use the (OK) button to make the player jump at anytime. You cannot jump if the player is facing an interactable event.
    Activating the event will takes priority over jumping.

        -Simply pressing (OK) will make the player jump in place.

        -Pressing (OK) while moving will make the player jump 2 tiles
          in the direction it's facing.

       -Pressing (OK) while moving and holding the (DASH) button will
         make the player jump 3 tiles in the direction it's facing.

    See the plugin instructions for further details, but I strongly recommand to play with the demo project provided with the plugin to get in touch with its main functionalities.

    Spoiler: Plugin instructions
                    Code:       
    1. * =====================================================================================
    2. * == About this Plugin ================================================================
    3. * =====================================================================================
    4. * This plugin provide a jump and fall system for your game.
    5. *
    6. * The instructions bellow only gives a quick overview of the
    7. * plugin fonctionnalities. I strongly advise to play a bit with
    8. * the demo project to get in touch with its mechanics.
    9. *
    10. *     *This system is tile-based. It's not intended to be used to
    11. *      make an action/platformer game. But simply to add some spice
    12. *      to your rpg games for exploration, puzzles and secrets.
    13. *     
    14. *     *The 'action' nature of this jump system make it hardly
    15. *      compatible with visible followers as they will jump all
    16. *      over the place, trying to follow the lead of the player.
    17. *
    18. *   
    19. *    *** Important note ***
    20. *     The plugin need the image file Shadow3.png to be present
    21. *     in the /img/system folder of your project. The file can
    22. *     be found in the /img/system folder of the demo project.
    23. *    **********************
    24. *
    25. *
    26. * How to use:
    27. * ===========
    28. * Use the (OK) button to make the player jump at anytime.
    29. * You cannot jump if the player is facing an interactable event.
    30. * Activating the event will takes priority over jumping.
    31. *
    32. *   -Simply pressing (OK) will make the player jump in place.
    33. *
    34. *   -Pressing (OK) while moving will make the player jump 2 tiles
    35. *    in the direction it's facing.
    36. *
    37. *   -Pressing (OK) while moving and holding the (DASH) button will
    38. *    make the player jump 3 tiles in the direction it's facing.
    39. *
    40. * You cannot jump in or through impassable tiles nor map edge.
    41. * But it's possible to leap over some impassable tiles that have
    42. * been marked accordingly.
    43. *
    44. *
    45. * Overleap
    46. * ========
    47. * By performing a 'dash jump', you can leap over single impassable
    48. * tiles that have the 'overleap tag'. You cannot jump over an over-
    49. * leap tile if you're directly adjacent to it. You must be one tile
    50. * away to effectively leap over something.
    51. *
    52. *
    53. * MAP NOTETAG:
    54. *              <OVERLEAP REGION: x, y, z>
    55. *
    56. *      Use this notetag to identity map region Id that can be jumped
    57. *      over. You can put these region Ids on scenery parts such as
    58. *      bushes, barrels, crates and fences.
    59. *
    60. *      Example 1: <OVERLEAP REGION: 1>
    61. *
    62. *                  A map with this notetag will allow the player
    63. *                  to jump over single tiles mark by region 1.
    64. *
    65. *      Example 2: <OVERLEAP REGIONS: 1, 2>
    66. *
    67. *                  A map with this notetag will allow the player to
    68. *                  jump over single tiles mark by regions 1 and 2.
    69. *                  Usually, a single region Id should be enough, but
    70. *                  you can assign as many region Ids as you need.
    71. *
    72. *
    73. * EVENT COMMENT TAG:
    74. *
    75. *             <OVERLEAP EVENT>
    76. *                 
    77. *       Use this event comment tag to allow the player to jump over
    78. *       the event when the page having the comment tag is active.
    79. *       With correct timing, you can even leap over moving events
    80. *       such as NPCs and visual encounters.
    81. *
    82. *
    83. * Cliff regions
    84. * =============
    85. * Cliff regions Ids are put over wall tiles to make the player fall
    86. * to the bottom floor when it pass over. Cliff regions makes the
    87. * walls passables, but forces the player to immediately move downward
    88. * at high speed like if it's falling down. The player will keep falling
    89. * downward until it reach the last cliff tile of the vertical stretch.
    90. *
    91. *  *** Important note ***
    92. * Actually, the falling move will stop one tile away from the last cliff
    93. * tile. This permit to leave the last wall tile (next to the floor) to
    94. * be not a cliff. This way, the player can jump in front of the wall on
    95. * the bottom floor without being 'catched' by the cliff.
    96. *  ***********************
    97. *
    98. * Using a 'dash jump', you can jump over up to 2 cliff tiles.
    99. *
    100. *
    101. * MAP NOTETAG:
    102. *              <CLIFF REGION: x, y, z>
    103. *
    104. *       This notetag is used to assign region Ids as cliff tiles.
    105. *
    106. *
    107. * EVENT COMMENT TAG:
    108. *
    109. *              <NO FALL>
    110. *     
    111. *       Any events located on a cliff tile will fall down in the same
    112. *       way as the player. If for any reasons, you need an event not
    113. *       to be affected by cliff, use the comment tag above on the event
    114. *       active page.
    115. *
    116. *             <PREVENT FALL EVENT>
    117. *
    118. *       This comment tag has the same effect as the <NO FALL> tag on
    119. *       the event itself. In addition, it will disabled the cliff effect
    120. *       for the player and other events that stand on the same tile as
    121. *       the event with that comment tag.
    122. *
    123. *       *using the event hit box extension feature of my other plugin
    124. *        TSR_TransferTrigger, you can use a single event to disable many
    125. *        cliff tiles. See the demo project.
    126. *
    127. *
    128. * Pitfalls
    129. * ========
    130. * Pitfalls are passable tiles (usually representing a hole or gape in the
    131. * floor) that will make the player fall to the floor bellow whenever it
    132. * walk (or land) on it. Basically pitfalls are events that activate when
    133. * the player pass on it. This trigger a short animation where the player
    134. * sprite gradually fade out while it shrink and spin as it fall into the
    135. * pit (like pitfalls in Zelda games). This is followed by a transfer
    136. * command to send the player to whatever map you want.
    137. *      
    138. * SCRIPTCALL:
    139. *
    140. *           this.setupPitfall();   
    141. *
    142. *       Use this scriptcall to turn an event page into a pitfall.
    143. *
    144. *       A simple pitfall consist of an event set with 'bellow' priority
    145. *       and touch trigger that have the following command lines:
    146. *   
    147. *            -this.setupPitall()
    148. *            -wait: 60 frames (wait for the falling motion)
    149. *            -transfer player command
    150. *
    151. *    *if you have a plugin that can extend the hit box of events, you
    152. *     can make large pitfall area with a single event. My trigger plugin
    153. *     TSR_TransferTrigger provided with the demo project can be used for
    154. *     that, but unlike the <prevent fall event> comment tag, any trigger
    155. *     plugins could probably work to extend pitfalls.
    156. *
    157. *
    158. * MAP NOTETAG:
    159. *               <PITFALL REGION: x, y, z>
    160. *
    161. *           Use this map notetag to identify region Ids as pitfalls.
    162. *           By default, this is used by the plugin to detect if the
    163. *           player will land on a pitfall and prevent the landing SE
    164. *           to play when it's the case. But it can also be used to
    165. *           check if a tile is a pitfall before the player actually
    166. *           walk or land on it, or if the pitfall event isn't active.
    167. *
    168. *     *** Important note ***
    169. *    A tile that is marked by a pitfall region doesn't become a pitfall.
    170. *    Only events with the setup above have the pitfall effect. Thus,
    171. *    the pitfall region is optionnal. But it you don't mark a pitfall
    172. *    tile with a pitfall region, the landing sound will play if the
    173. *    player jump and land in a pitfall, as if it is solid ground...
    174. *     ***********************
    175. *
    176. *
    177. * Additionnal stuff
    178. * =================
    179. *
    180. * NO JUMP REGION:
    181. *                 <NO JUMP REGION: x, y, z>
    182. *
    183. *          Use this map notetag to identify region Ids to make passable
    184. *          tiles unreachable by jump. This is mainly usefull to prevent
    185. *          the player to access rooftop and ceiling tiles by jumping.
    186. *
    187. *
    188. * WATER REGION:
    189. *                <WATER REGION: x, y, z>
    190. *
    191. *          Use this map notetag to mark floor tiles as 'water'. When
    192. *          the player land on a water tile, the 'splash' sound will
    193. *          play instead of the landing sound. This is compatible with
    194. *          the region notetag of my foot steps plugin TSR_FootSteps.
    195. *
    196. *
    197. * TSR_MoveEvent
    198. *
    199. *          This plugin is compatible with my push/pull/throw plugin.
    200. *          Pushing, pulling, or picking up an event with the (OK) button
    201. *          has priority over jumping.
    202. *
    203. *          Yet, you can add a <overleap event> tag to a moveable or
    204. *          pickable event, allowing to jump over it from one tile away.
    205. *
    206. *          An event that is thrown or pushed into a cliff tile will
    207. *          fall down accordingly.
    208. *
    209. *
    210. *
    211. *   *** Hope you'll enjoy the plugin! ***
    212. *
    复制代码


    *The plugin is code-open and modifications are allowed. You can tweak it to your needs, as long as you respect my terms.
                    Code:       
    1. * =======================================================================================
    2. * == Term of Usage ======================================================================
    3. * =======================================================================================
    4. *
    5. * Use in any independant RPG Maker MZ and MV projects, including commercials.
    6. *
    7. * Credit is required for using this Plugin.
    8. * For crediting, use 'TSR' along with one of
    9. * the following terms:
    10. *      'The Northern Frog' or 'A frog from the north'
    11. *
    12. * Do not change the Header or the Terms of usage.
    13. *
    14. * Do not change the main Object name.
    15. *
    16. * Editing of the script is allowed for your personal use for your project.
    17. *
    18. * DO NOT REDISTRIBUTE!
    19. * If you want to share it, share the link to my itch.io account:
    20. * https://the-northern-frog.itch.io/
    21. *
    22. *
    23. * =======================================================================================
    24. * == Version and compatibility ==========================================================
    25. * =======================================================================================
    26. * 07/12/2020 completed plugin,                                         v1.0.0
    27. * 11/11/2023 add plugin instructions and demo project,                 v1.0.2
    28. *
    29. *
    复制代码


    Regards




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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 03:55 , Processed in 0.087968 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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