| 赞 | 0  | 
 
| VIP | 2 | 
 
| 好人卡 | 2 | 
 
| 积分 | 0 | 
 
| 经验 | 15010 | 
 
| 最后登录 | 2017-5-13 | 
 
| 在线时间 | 294 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 48 
 
        - 在线时间
 - 294 小时
 
        - 注册时间
 - 2012-12-1
 
        - 帖子
 - 903
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
 本帖最后由 熊猫抱树 于 2012-12-16 15:33 编辑  
 
我是一个新手刚接触脚本,很多地方不明白,请前辈多多指教 
 
最近用这个战斗界面头像显示的脚本 
 
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 
                @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 - 1 
                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 
 
用起来很好,不过请问,这个头像的位置不知道可不可以调,比如放中间或在靠右的位置 
可以的话应该怎么写呢,自己研究了半天也没搞明白 
请教各位大神~   
 |   
 
 
 
 |