Project1

标题: 求教求教!掉落物闪光用什么插件啊! [打印本页]

作者: Mornsun    时间: 2024-2-26 10:21
标题: 求教求教!掉落物闪光用什么插件啊!
当掉落某个稀有物品的时候,该物品周围会有一个闪光动画提示

weixin图片_20240226102039.jpg (33.62 KB, 下载次数: 24)

weixin图片_20240226102039.jpg

作者: kingybk1976    时间: 2024-2-26 11:50
这个掉落物用的是什么插件呢?
作者: 动漫二次元    时间: 2024-2-26 13:12
用事件即可  判断掉落物的位置和显示图片即可
作者: Mornsun    时间: 2024-2-26 13:27
动漫二次元 发表于 2024-2-26 13:12
用事件即可  判断掉落物的位置和显示图片即可

怎么做?得判断某个物品的稀有度,还要跟随物品的动态效果
作者: Mornsun    时间: 2024-2-26 13:28
kingybk1976 发表于 2024-2-26 11:50
这个掉落物用的是什么插件呢?

有个MOG-trpopupbattle
作者: 动漫二次元    时间: 2024-2-26 14:52
本帖最后由 动漫二次元 于 2024-2-26 14:53 编辑
Mornsun 发表于 2024-2-26 13:27
怎么做?得判断某个物品的稀有度,还要跟随物品的动态效果


https://mp.weixin.qq.com/s?__biz ... 942fc315143160ac#rd


动态效果就显示图片序列帧动画即可
作者: 清澈淌漾    时间: 2024-2-26 15:39
这种效果需要写shader 建议放弃
作者: Mornsun    时间: 2024-2-26 17:39
清澈淌漾 发表于 2024-2-26 15:39
这种效果需要写shader 建议放弃

好吧,我去B站找找大佬去

作者: alexncf125    时间: 2024-2-27 12:50
本帖最后由 alexncf125 于 2024-2-27 12:53 编辑

https://raw.githubusercontent.co ... AnimationByPoint.js
静悄悄地放下一个,当处于战斗场景时,可以在指定坐标显示动画的插件
可是要如何与MOG_TrPopUpBattle结合做出楼主想要的效果,就得看看有没有大神接手研究了
顺带一提,这帖三楼跟六楼的回复可以无视)
作者: 阿云Ayun    时间: 2024-2-29 18:09
之前在mv里面尝试修改过   把这段替换下试试
  1. SpriteEnemyTrP.prototype.createIcon = function() {
  2.         this._iconImg = ImageManager.loadSystem("IconSet")
  3.     this._icons = [];
  4.     for (var i = 0; i < this._enemy._treasure.item.length; i++) {
  5.                  var item = this._enemy._treasure.item[i];
  6.                  if (item) {
  7.                          // this._icons[i] = new Sprite(this._iconImg)
  8.                          this._icons[i] = new Sprite_Base();
  9.              this._icons[i].bitmap = this._iconImg;
  10.                          this._icons[i].item = item;
  11.                          this._icons[i].index = i;
  12.                          this._icons[i].anchor.x = 0.5;
  13.                          this._icons[i].anchor.y = 1;
  14.                          this.refreshIcons(this._icons[i]);
  15.                          this.addChild(this._icons[i]);
  16.                          this._icons[i].startAnimation($dataAnimations[parseInt(123)], false, 0);//这里设置动画id
  17.                  };
  18.         };
  19.         this._icons.sort(function(a, b){return b.intY-a.intY});
  20.         this.children.sort(function(a, b){return b.intY-a.intY});
  21.         for (var i = 0; i < this._icons.length; i++) {
  22.                  this.refreshWait(this._icons[i],i,this._icons.length);
  23.         };
  24. };
复制代码





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1