| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 2 | 
 
| 积分 | 1 | 
 
| 经验 | 4529 | 
 
| 最后登录 | 2017-1-12 | 
 
| 在线时间 | 106 小时 | 
 
 
 
 
 
Lv1.梦旅人 
	- 梦石
 - 0 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 106 小时
 
        - 注册时间
 - 2011-9-26
 
        - 帖子
 - 23
 
 
 
 | 
	
敌人战斗动画脚本,虽然有些简陋。也忘了是哪找的- #==============================================================================
 
 - # ■ Game_Actor
 
 - #==============================================================================
 
 - class Game_Actor < Game_Battler
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 是否使用精灵
 
 -   #--------------------------------------------------------------------------
 
 -   def use_sprite?
 
 -     true
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 战斗画面 X 坐标
 
 -   #--------------------------------------------------------------------------
 
 -   def screen_x
 
 -     Graphics.width / 2
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 战斗画面 Y 坐标
 
 -   #--------------------------------------------------------------------------
 
 -   def screen_y
 
 -     Graphics.height
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 战斗画面 Z 坐标
 
 -   #--------------------------------------------------------------------------
 
 -   def screen_z
 
 -     return 100
 
 -   end
 
 - end
 
 - #==============================================================================
 
 - # ■ Sprite_Battler
 
 - #==============================================================================
 
 - class Sprite_Battler < Sprite_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 设置动画的原点
 
 -   #--------------------------------------------------------------------------
 
 -   def set_animation_origin
 
 -     if @animation.position == 3
 
 -     # 数据库中设定的动画基础位置是 [画面] 时的坐标变更
 
 -       @ani_ox = viewport.rect.width / 2
 
 -       yy = viewport.rect.height / 5
 
 -       @ani_oy = @battler.actor? ? (yy * 4) : (yy * 2.5)
 
 -     else
 
 -       @ani_ox = x - ox + width / 2
 
 -       @ani_oy = y - oy + height / 2
 
 -       if @animation.position == 0
 
 -         @ani_oy -= height / 2
 
 -       elsif @animation.position == 2
 
 -         @ani_oy += height / 2
 
 -       end
 
 -     end
 
 -   end
 
 - end
 
 
  复制代码 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |