设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 277|回复: 3
打印 上一主题 下一主题

[有事请教] 请问如何使OverpassTile这个插件做到遮挡物在人物下方的效果

[复制链接]

Lv2.观梦者

梦石
0
星屑
729
在线时间
98 小时
注册时间
2023-9-13
帖子
14
1
发表于 2024-1-9 18:27:04 | 显示全部楼层



应该就是要这个效果吧

PS:方法来自大佬康娜酱!!!
回复

使用道具 举报

Lv2.观梦者

梦石
0
星屑
729
在线时间
98 小时
注册时间
2023-9-13
帖子
14
2
发表于 2024-1-10 05:36:41 | 显示全部楼层
rmmz_sprites.js     添加一行if ($gamePlayer.regionId() === 1 && this._character instanceof Game_Player) this.z = 9999;
如下:

Sprite_Character.prototype.updatePosition = function() {
    this.x = this._character.screenX();
    this.y = this._character.screenY();
    this.z = this._character.screenZ();
        if ($gamePlayer.regionId() === 1 && this._character instanceof Game_Player) this.z = 9999;
};

柜台下面一格区域编号改成1.
发图片似乎不太方便,方法很简单随便试一下就行,不需要插件。
  
PS:方法来自大佬康娜酱。

评分

参与人数 1+1 收起 理由
79160475 + 1 认可答案

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-12 13:27

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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