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

Project1

 找回密码
 注册会员
搜索

【求助】如何修改【战斗选中的白闪频率与闪烁强度】

查看数: 79 | 评论数: 3 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2024-9-4 12:24

正文摘要:

RT 玩家测试游戏的时候反馈【战斗选中特效不明确】 这边想到的是:让白闪更快,强度更高,更显眼 所以想问下论坛的大佬们有没有直接后台修改的办法?或者其他解决办法呢? ...

回复

Arrose 发表于 2024-9-4 13:51:02

其实感觉还是直接做个箭头或者手的图标比较明显,应该很多这种指示插件
诚夏飞天了 发表于 2024-9-4 13:39:57
Arrose 发表于 2024-9-4 13:14
可能是这个,但是我没测试过,保存为.js,你可以把64改成100试试看
Sprite_Battler.prototype.updateSelect ...

谢谢!解决了
Arrose 发表于 2024-9-4 12:24:37
本帖最后由 Arrose 于 2024-9-4 13:49 编辑

可能是这个,但是我没测试过,保存为.js,你可以把64改成100,30改20试试看
JAVASCRIPT 代码复制
  1. Sprite_Battler.prototype.updateSelectionEffect = function() {
  2.     const target = this.mainSprite();
  3.     if (this._battler.isSelected()) {
  4.         this._selectionEffectCount++;
  5.         if (this._selectionEffectCount % 30 < 15) {
  6.             target.setBlendColor([255, 255, 255, 64]);
  7.         } else {
  8.             target.setBlendColor([0, 0, 0, 0]);
  9.         }
  10.     } else if (this._selectionEffectCount > 0) {
  11.         this._selectionEffectCount = 0;
  12.         target.setBlendColor([0, 0, 0, 0]);
  13.     }
  14. };
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2024-9-21 10:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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