查看: 3242|回复: 0

[已经过期] CP制度+战斗时脸谱显示的改进讨论

[复制链接]
梦石
0
星屑
604
在线时间
333 小时
注册时间
2011-11-19
回帖
166
发表于 2012-5-5 17:45:04 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 q854240045 于 2012-5-5 17:55 编辑

用了




$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base
        alias start_actor_command_selection_old start_actor_command_selection
        def start_actor_command_selection
    start_actor_command_selection_old
                Audio.se_play("Audio/SE/xyj")
                @actorface = Sprite.new
                @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
                @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height
        end
        alias prior_command_old prior_command
        def prior_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                prior_command_old
        end
        alias next_command_old next_command
        def next_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                next_command_old
        end
end




以及图书馆的CP制战斗后变成了这样




4.jpg








即左边的脸谱位置能不能再向下一点呢?
我不知道这个脚本怎么改位置,不过好像用的是公式而不是直接的Xy坐标
另外那半边脸普能变成整张脸谱吗?
等待CP时只显示队长的脸谱,轮到谁发招时再换成他的脸谱?



‘‘──q854240045于2012-5-5 17:53补充以下内容

对了,解决了一个
但是
我不知道这个脚本怎么改位置,不过好像用的是公式而不是直接的Xy坐标
另外那半边脸普能变成整张脸谱吗?
等待CP时只显示队长的脸谱,轮到谁发招时再换成他的脸谱?

没有解决,我只解决脸谱向下


将$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base
        alias start_actor_command_selection_old start_actor_command_selection
        def start_actor_command_selection
    start_actor_command_selection_old
                Audio.se_play("Audio/SE/xyj")
                @actorface = Sprite.new
                @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
                @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height
        end
        alias prior_command_old prior_command
        def prior_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                prior_command_old
        end
        alias next_command_old next_command
        def next_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                next_command_old
        end
end

改成$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base
        alias start_actor_command_selection_old start_actor_command_selection
        def start_actor_command_selection
    start_actor_command_selection_old
                Audio.se_play("Audio/SE/xyj")
                @actorface = Sprite.new
                @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
                @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height + @actor_command_window.height - 25
        end
        alias prior_command_old prior_command
        def prior_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                prior_command_old
        end
        alias next_command_old next_command
        def next_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                next_command_old
        end
end

就成了 5.jpg




但总感觉那半张脸谱还是很别扭


’’
支持《彼岸之光》系列!加油!
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部