参考F1和【哔——】君写的脚本↓ RUBY 代码复制def scene_tone_with_hp #←不要吐槽奇葩的名字 rate = (1.0 - actor.hp / actor.mhp).round(2)&nb ...
只是逛逛 发表于 2013-8-24 11:47 木有类木有被调用
fangyc 发表于 2013-8-23 15:09 其实已经有定义好的计算HP比例的方法 actor.hp_rate 原理就是除的时候把除数转成浮点数,这样结果就不会变 ...
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-7-19 14:03
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.