def initialize super(x, 390, width, 90) self.windowskin = nil self.x = x x = (640 - $game_party.actors.size * 150) / 2 self.width = width width = $game_party.actors.size * 150 self.contents = Bitmap.new(width - 32, height - 32) self.z = 100 end def dispose for i in 0...$game_party.actors.size @st[i].dispose end super end def update for i in 0...$game_party.actors.size @st[i].update end super end def refresh self.contents.clear @st = [] for i in 0...$game_party.actors.size actor = $game_party.actors[i] icon_x = (800 - $game_party.actors.size * 150) / 2 + i * 150 @st[i] = States_Pic.new(actor.states,icon_x+25,y+115,40) end end end
QQ截图20200125103057.png (5.29 KB, 下载次数: 13)
srwjrevenger 发表于 2020-1-25 14:07
试试把第4行和第5行互换,6和7也要这样哦
fux2 发表于 2020-1-26 10:14
在父类的初始化中就dispose了,从楼主贴出来的代码里看不出具体情况
fux2 发表于 2020-1-26 10:14
在父类的初始化中就dispose了,从楼主贴出来的代码里看不出具体情况
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |