じ☆ve冰风 发表于 2026-8-2 11:20:43

Move Events Ex

Overview

Well, normally you cannot move events in between tiles, and this snippet gives you the power to do so via a simple script call.

Take note though that this is suggested to only be used for decorative events and those that run autorun/parallel as this might cause activation bug if used on events triggered by Action button and touch events.

Script

Spoiler=beginHow to use:simply make a script call in an event,preferable parallel so it runs beforeyou see the map, then just erase itevent_move_ex(id,x,y)-> id = Event ID-> x = Map X (can have decimals)-> y = Map Y (can have decimals)=endclass Game_Interpreterdef event_move_ex(id,x,y)    $game_map.events.movetox(x,y)endendclass Game_Event def movetox(x, y)    @x = x    @y = y    @real_x = @x    @real_y = @y    @prelock_direction = 0    straighten    update_bush_depthendend



Terms

Free for anything, it's a really simple snippet


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