设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MV 讨论区 › TAA_EventOffset v1.0.3: TAA_EventOffset v1.0.3-1.jpg

TAA_EventOffset v1.0.3: TAA_EventOffset v1.0.3-1.jpg

 

TAA_EventOffset v1.0.3:
TAA_EventOffset - v1.0.3
Created by taaspider

This plugin is compatible with both MV and MZ.

Terms of Use

Any plugins developed by taaspider are free for use for both commercial and  noncommercial RPG Maker games, unless specified otherwise. Just remember to credit "taaspider".

Redistribution of parts or the whole of taaspider plugins is forbidden (which also includes reposting), unless it comes from the official website (linked within the post). You are allowed to edit and change the plugin code for your own use, but you're definitely not allowed to sell or reuse any part of the code as your own. Although not required to use my plugins, a free copy of your game would be nice!

Introduction

This is a simple utility plugin that allows you to have more control over the event position in a tile, so that it can have a perfect placement in the scene. For example, it can be used to place the event a few pixels up and make it fit better like it is sitting on a chair, or a few pixels to the right, to hide behind a tree or an ornamental plant.

Screenshots
Spoiler






How to Use

WARNING: This plugin requires RPG Maker MV 1.5.0 or above! Please make sure your RPG Maker MV software is up to date before using this plugin.

First of, download the plugin here.

The plugin has no parameters and all usage is done through event notes or comment tags. It's important to know that comment tags have precedence over note tags. That means that if you setup an event page with a different offset value then its note field, whenever that page becomes active it will overwrite the note settings.

Both tagging methods use the same syntax:
<TAA_EO: x={op}{n}; y={op}{m}>​
<TAA_EO: x={op}{n}.{w}; y={op}{m}.{k}>​

{op} can be replaced by one of the following operands: + (sum), - (subtraction), * (multiplication), / (division). You can also omit it entirely, which means the exact coordinate will be used.

{n} and {m} are integers, while {w} and {k} are used for precision placement  inside the tile itself. If {w} and {k} is omitted or set as zero, it would represent the tile center coordinates, while any value greater than zero (along an operand, like + or -) would describe coordinates inside the same tile.

Let's say, for example, that you want the event to be placed above its central coordinates, but halfway from the tile upper border:
<TAA_EO: y=-0.5>​
or even make it also halfway from the tile left border:
<TAA_EO: x=-0.5; y=-0.5>​

You can also replace any of the numeric parameters ({m}, {n}, {w} or {k}) with a variable value. To do that, use the tag v[{var num}]. For example, to use variables one and two to fine tune the event position, considering that their value hold the event position inside the tile:
<TAA_EO: x=-0.v[1]; y=-0.v[2]>​

In another example, the event can also be moved to coordinates specified by the same said variables, without the use of operands:
<TAA_EO: x=v[1]; y=v[2]>​

Or even use four variables to control every aspect of the event's position:
<TAA_EO: x=v[1].v[2]; y=v[3].v[4]>​

If using variables, keep in mind that values must be positive and it is more limited. For example, setting a variable to 1, 10 or 100 and using it as your decimal value (the value after the dot) will provide the same result: in either case it will translate to .1. I might consider changing this behavior in the future if the need arises.

Spoiler: CHANGE LOG

  • Version 1.0.3:

    • Fixed an issue that could cause offsetted events to have no collision with characters;

  • Version 1.0.2:

    • Fixed an issue that would cause game crash if none of the event pages conditions are met (for example, have an event with a single page to load only when switch 1 is ON. If it is OFF, the game would crash);

  • Version 1.0.1:

    • Fixed an issue which would crash the game if using a "Erase Event" command;

  • Version 1.0.0:

    • Initial release;



本贴来自国际rpgmaker官方论坛作者:taaspider处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/taa_eventoffset-v1-0-3.128903/
TAA_EventOffset v1.0.3: TAA_EventOffset v1.0.3-1.jpg
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

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

立即查看

Loading...

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

GMT+8, 2026-10-24 21:26 , Processed in 0.088904 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部