| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 2 |  
| 积分 | 1 |  
| 经验 | 2326 |  
| 最后登录 | 2014-10-1 |  
| 在线时间 | 50 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间50 小时注册时间2011-5-22帖子12 | 
| 
我用脚本实现了如下图的效果(选择角色时在窗口的右侧显示一张角色半身图)
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 ![]() 但是现在这样是一选择角色图就直接出来了,
 我想做成让这张图从右边界平移出来,并且令其不透明度逐渐增大(渐显)
 
 脚本如下
 我搜索到这么一个脚本$game_map.screen.pictures[number].move(origin,x,y,zoom_x,zoom_y,opacity,blend_type,duration),复制代码$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
                @actorface = Sprite.new
                if BattleManager.actor.hp < BattleManager.actor.mhp*0.3
                  @actorface.bitmap = Bitmap.new("Graphics/Faces/face0_" + BattleManager.actor.id.to_s + ".png")
                else
                  @actorface.bitmap = Bitmap.new("Graphics/Faces/face_" + BattleManager.actor.id.to_s + ".png")
                end
                @actorface.x = 300
                @actorface.y = 50
        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
但是这个脚本似乎是VX的,不知道通不通用,而且那个pictures[number]应该改成什么?
 
 求教,谢谢
 | 
 |