if @battler.is_a?(Game_Actor)
@nx += 1
@nx %= 40 #每帧+1,40帧一个循环
@xbit = @nx / 10 * self.bitmap.width/4 #获得当前的图像坐标
self.src_rect.set(@xbit, 0, self.bitmap.width/4, self.bitmap.height) #设置当前战斗图的图像
end
| 欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |