1770| 2
|
[已经解决] 在战斗中如何使用事件页让敌人坐标移动? |
150星屑
最佳答案晒一下网上抠到的代码, 仅供参考, 意非答题
[fold]class Sprite_Battler < Sprite_Base
MINANG, MAXANG = 1, 51
alias spiral_initialize initialize
def initialize(viewport, battler = nil)
spiral_initialize(viewport, battler)
@curr_mark = 0
@range = gen_range
end
def gen_range(max = MAXANG)
range = []
MINANG.upto(MAXANG) do |i|
split = i.to_f/0.6
...
| ||
| ||
| ||
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-1 07:05
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.