加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 黑米馒头 于 2024-5-5 20:24 编辑
游戏里用了2种显示图片的方法,第一种真移位显示图片太乱,有没办法改成第二种那样简化显示
真移位图片显示:
@number = (@number + 1) % BattlerName[@battler.name][@battler.startactive].size
self.bitmap = RPG::Cache.battler(BattlerName[@battler.name][@battler.startactive][@number], @battler_hue)
module Scene_BattleName # 移动速度 Move_Duration = 40 BattlerName = { "阿尔西斯" => { "待" => ["阿尔西斯/待/1","阿尔西斯/待/2","阿尔西斯/待/3","阿尔西斯/待/4"], "移" => ["阿尔西斯/移/1","阿尔西斯/移/2","阿尔西斯/移/3","阿尔西斯/移/4","阿尔西斯/移/5","阿尔西斯/移/6","阿尔西斯/移/7","阿尔西斯/移/8"], "返" => ["阿尔西斯/返/1","阿尔西斯/返/2","阿尔西斯/返/3","阿尔西斯/返/4","阿尔西斯/返/5","阿尔西斯/返/6","阿尔西斯/返/7","阿尔西斯/返/8"] }, } end class Scene_Battle include Scene_BattleName end class Sprite_Battler include Scene_BattleName end
module Scene_BattleName
# 移动速度
Move_Duration = 40
BattlerName = {
"阿尔西斯" => {
"待" => ["阿尔西斯/待/1","阿尔西斯/待/2","阿尔西斯/待/3","阿尔西斯/待/4"],
"移" => ["阿尔西斯/移/1","阿尔西斯/移/2","阿尔西斯/移/3","阿尔西斯/移/4","阿尔西斯/移/5","阿尔西斯/移/6","阿尔西斯/移/7","阿尔西斯/移/8"],
"返" => ["阿尔西斯/返/1","阿尔西斯/返/2","阿尔西斯/返/3","阿尔西斯/返/4","阿尔西斯/返/5","阿尔西斯/返/6","阿尔西斯/返/7","阿尔西斯/返/8"]
},
}
end
class Scene_Battle
include Scene_BattleName
end
class Sprite_Battler
include Scene_BattleName
end
简化图片显示
|