查看: 3863|回复: 10

[已经过期] 连击系统如何设计?左右手武器都要行动、对象方动画?

[复制链接]
梦石
0
星屑
15106
在线时间
2234 小时
注册时间
2019-1-24
回帖
964

R考场第七期纪念奖

发表于 2020-4-10 08:21:28 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 miantouchi 于 2020-4-10 08:36 编辑

一.篇幅应该有点长,先听我细细说来是什么效果
比如哪吒,拿武器分左右手,也就是双手都有武器都有行动方和对象方动画
武器影响角色的攻击动作和打在敌人身上的效果。
也就是说:剑+剑,刀+刀,枪+枪,刀+枪,枪+剑,刀+剑。。。。就不一一列举了,可以形成各种人物攻击动作和对应的打击效果。。。
下面是我截取VA的图片,因为XP默认没有双持武器。
二.经过我长期分析数帧,这个游戏就是最多4连击,武器类型多种多样。
例如哪吒:可以使用武器、刀、剑、枪、圈类四大并且
1连击:左手武器动画 = 42帧
2连击:左手武器动画+右手武器动画+左手武器动画 =66帧
3连击:左手武器动画+右手武器动画+左手武器动画+右手武器动画+左手武器动画 = 90帧
4连击:左手武器动画+右手武器动画+左手武器动画+右手武器动画+左手武器动画+右手武器动画+左手武器动画 =114帧
以上情况,
1.如果左手或者右手没有装备武器的情况,就显示空手攻击动画。
2.以上左手、右手动画,每个连击不是规律的,我打个比方,1连击光左手就42帧。
3.行动方和对象方动画应该是同时的,出左手时,行动方动画和对象方动画出现、出右手时行动方和对象方动画出现。
由此形成了人物连击的感觉。
4.我的想法是,左手行动方+右手行动方,比方说现在2连击了,我把左手设置66帧、右手66帧,同时播放。中间的空白帧互补。
没想到哪吒一个人就弄了好100个动画 。
5.图片中、涂绿色的是左手装备、蓝色是右手装备,下面写的帧数是对应武器的对象方动画(也就是攻击到敌人身上的动画)
三,最后是找的一部分功能,想改造成这个效果,我就把重点相关联的地方贴出来。
感觉这个代码还是不是太适合我一些地方,还请大家帮忙想想看还有没有什么好办法
  1. class Game_Actor < Game_Battler
  2.   #--------------------------------------------------------------------------
  3.   # ● 公开实例变量
  4.   #--------------------------------------------------------------------------
  5.   attr_reader   :weapon_id                # 武器 ID
  6.   attr_reader   :weapon2_id               # 二刀流武器 ID
  7.   #--------------------------------------------------------------------------
  8.   # ● 设置
  9.   #     actor_id : 角色 ID
  10.   #--------------------------------------------------------------------------
  11.   def setup(actor_id)
  12.     # --- 从这里追加部分 ---
  13.     @weapon_id = 0
  14.     @weapon2_id = actor.armor1_id
  15.     $game_party.gain_weapon(actor.weapon_id, 1)
  16.     equip(0, actor.weapon_id)
  17.     # --- 添加部分结束 ---
  18.     @armor1_id = 0#actor.armor1_id
  19.     @armor2_id = actor.armor3_id  #############
  20.     @armor3_id = actor.armor2_id  ###############
  21.     @armor4_id = actor.armor4_id
  22.   end
  23.   #--------------------------------------------------------------------------
  24.   # ● 普通攻击 获取攻击方动画 ID
  25.   #--------------------------------------------------------------------------

  26.   def animation1_id
  27.     weapon = $data_weapons[@weapon_id]
  28.     # --- 更改部分 ---
  29.     weapon2 = $data_weapons[@weapon2_id]
  30.     animations = []
  31.     animations.push(weapon.animation1_id) if weapon != nil
  32.     animations.push(weapon2.animation1_id) if weapon2 != nil
  33.     animations.delete(0)
  34.     return animations.empty? ? 0 : animations
  35.     # --- 完成修改 ---
  36.   end

  37.   #--------------------------------------------------------------------------
  38.   # ● 普通攻击 获取对像方动画 ID
  39.   #--------------------------------------------------------------------------
  40.   def animation2_id
  41.     weapon = $data_weapons[@weapon_id]
  42.     # --- 更改部分 ---
  43.     weapon2 = $data_weapons[@weapon2_id]
  44.     animations = []
  45.     animations.push(weapon.animation2_id) if weapon != nil
  46.     animations.push(weapon2.animation2_id) if weapon2 != nil
  47.     animations.delete(0)
  48.     return animations.empty? ? 0 : animations
  49.     # --- 完成修改 ---
  50.   end

  51. class Scene_Battle
  52.   #--------------------------------------------------------------------------
  53.   # ● 生成基本行动结果
  54.   #--------------------------------------------------------------------------
  55.   def make_basic_action_result
  56.     # 攻击的情况下
  57.     if @active_battler.current_action.basic == 0
  58.       # ★★★★★★★★★★★★★★★★---更改部分 ---★★★★★★★★★★★★★★★★
  59.       # 设置攻击 ID
  60.       @animation1_id = @active_battler.animation1_id.is_a?(Array) ? @active_battler.animation1_id.dup : @active_battler.animation1_id
  61.       @animation2_id = @active_battler.animation2_id.is_a?(Array) ? @active_battler.animation2_id.dup : @active_battler.animation2_id
  62.       # ★★★★★★★★★★★★★★★★---完成修改 ------★★★★★★★★★★★★★★★
  63.       # 行动方的战斗者是敌人的情况下
  64.       if @active_battler.is_a?(Game_Enemy)
  65.         if @active_battler.restriction == 3
  66.           target = $game_troop.random_target_enemy
  67.         elsif @active_battler.restriction == 2
  68.           target = $game_party.random_target_actor
  69.         else
  70.           index = @active_battler.current_action.target_index
  71.           target = $game_party.smooth_target_actor(index)
  72.         end
  73.       end
  74.       # 行动方的战斗者是角色的情况下
  75.       if @active_battler.is_a?(Game_Actor)
  76.         if @active_battler.restriction == 3
  77.           target = $game_party.random_target_actor
  78.         elsif @active_battler.restriction == 2
  79.           target = $game_troop.random_target_enemy
  80.         else
  81.           index = @active_battler.current_action.target_index
  82.           target = $game_troop.smooth_target_enemy(index)
  83.         end
  84.       end
  85.       # 设置对像方的战斗者序列
  86.       @target_battlers = [target]
  87.       # 应用通常攻击效果
  88.       for target in @target_battlers
  89.         target.attack_effect(@active_battler)
  90.       end
  91.       return
  92.     end
  93.     # 防御的场合
  94.     if @active_battler.current_action.basic == 1
  95.       # 帮助窗口显示"防御"
  96.       @help_window.set_text($data_system.words.guard, 1)
  97.       return
  98.     end
  99.     # 逃跑的情况下
  100.     if @active_battler.is_a?(Game_Enemy) and
  101.        @active_battler.current_action.basic == 2
  102.       # 帮助窗口"逃跑"显示
  103.       @help_window.set_text("逃跑", 1)
  104.       # 逃跑
  105.       @active_battler.escape
  106.       return
  107.     end
  108.     # 什么也不做的情况下
  109.     if @active_battler.current_action.basic == 3
  110.       # 清除强制行动对像的战斗者
  111.       $game_temp.forcing_battler = nil
  112.       # 移至步骤 1
  113.       @phase4_step = 1
  114.       return
  115.     end
  116.   end

  117.   #--------------------------------------------------------------------------
  118.   # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  119.   #--------------------------------------------------------------------------
  120.   def update_phase4_step3
  121.     # ★★★★★★★★★★★★★★★★---更改部分 ---★★★★★★★★★★★★★★★★
  122.     # 开始动画排列
  123.     if @animation1_id.is_a?(Integer)
  124.       @animation1_id = [@animation1_id]
  125.     end
  126.     animation = @animation1_id.shift
  127.     # 行动方动画 (ID 为 0 的情况下是白色闪烁)
  128.     if animation == 0
  129.       @active_battler.white_flash = true
  130.     else
  131.       @active_battler.animation_id = animation
  132.       @active_battler.animation_hit = true
  133.     end
  134.     # 动画丢失后移至步骤4
  135.     @phase4_step = 4 if @animation1_id.empty?
  136.     # ★★★★★★★★★★★★★★★★---完成修改 ------★★★★★★★★★★★★★★★
  137.   end

  138.   #--------------------------------------------------------------------------
  139.   # ● 刷新画面 (主回合步骤 4 : 对像方动画)
  140.   #--------------------------------------------------------------------------
  141.   def update_phase4_step4
  142.     # ★★★★★★★★★★★★★★★★---更改部分 ---★★★★★★★★★★★★★★★★
  143.     # 开始动画排列
  144.     if @animation2_id.is_a?(Integer)
  145.       @animation2_id = [@animation2_id]
  146.     end
  147.     animation = @animation2_id.shift
  148.     # 对像方动画
  149.     for target in @target_battlers
  150.       target.animation_id = animation
  151.       target.animation_hit = (target.damage != "Miss")
  152.     end
  153.     # 不管动画长度如何,至少等8帧
  154.     @wait_count = 8
  155.     # 动画丢失后移至步骤5
  156.     @phase4_step = 5 if @animation2_id.empty?
  157.     # ★★★★★★★★★★★★★★★★---完成修改 ------★★★★★★★★★★★★★★★
  158.   end
  159. end
  160. #==============================================================================
  161. # 本脚本来自[url]www.66RPG.com[/url],使用和转载请保留此信息
  162. #==============================================================================
复制代码
更多图片 小图 大图
组图打开中,请稍候......

遠航の猫咪

梦石
3
星屑
27057
在线时间
2428 小时
注册时间
2005-10-15
回帖
989

开拓者

发表于 2020-4-10 16:24:47 | 显示全部楼层
本帖最后由 SailCat 于 2020-4-10 16:25 编辑
  1. #==============================================================================
  2. # ■ 战斗动画增强 v1.0 by SailCat
  3. #------------------------------------------------------------------------------
  4. #   方法:本脚本插入到Main之前使用
  5. #   依赖:无
  6. #   版本:v1.0 (Build 171125)
  7. #   效果:
  8. #     1. 允许战斗者在一个主回合中连续播放多个动画并显示多个伤害值
  9. #     2. 在所有动画和伤害值显示完毕以前,战斗者不会倒下
  10. #   配置:关于时间间隔的若干配置项
  11. #   冲突:其他动画增强脚本
  12. #   说明:
  13. #     每当需要让战斗者连续显示动画时,使用
  14. #     battler.pend_animation(动画ID, 伤害, 会心一击标志)   # 追加到动画的队尾
  15. #     battler.insert_animation(动画ID, 伤害, 会心一击标志) # 在当前动画后切入
  16. #     后两个参数可以省略,取自己的当前值,此外,还可使用
  17. #     battler.animation_id = 动画ID                        # 立即切入,队列顺延
  18. #==============================================================================
  19. #==============================================================================
  20. # ■ SailCat's 插件公用
  21. #==============================================================================
  22. module SailCat
  23.   $sailcat_import ||= {}
  24.   #--------------------------------------------------------------------------
  25.   # ● 植入
  26.   #--------------------------------------------------------------------------
  27.   $sailcat_import[:BattleAnimation] = 1.0
  28.   #--------------------------------------------------------------------------
  29.   # ● 脚本配置区
  30.   #--------------------------------------------------------------------------
  31.   module BattleAnimation_Config
  32.     AWAIT_HIT_INTERVAL = 0                # 每两次动画之间的间隔帧数
  33.     AWAIT_DAMAGE_INTERVAL = 8             # 每一击显示伤害的等待时间帧数
  34.     AWAIT_DAMAGE_FINAL = 8                # 播放完所有动画后的等待时间帧数
  35.   end
  36. end

  37. #==============================================================================
  38. # ■ Game_Battler
  39. #==============================================================================
  40. class Game_Battler
  41.   #--------------------------------------------------------------------------
  42.   # ● 定义实例变量
  43.   #--------------------------------------------------------------------------
  44.   attr_reader   :pending_animations       # 缓存的动画
  45.   #--------------------------------------------------------------------------
  46.   # ● 方法重定义
  47.   #--------------------------------------------------------------------------
  48.   unless method_defined?(:sailcat_battleani_initialize)
  49.     alias sailcat_battleani_initialize initialize
  50.   end
  51.   #--------------------------------------------------------------------------
  52.   # ● 初期化
  53.   #--------------------------------------------------------------------------
  54.   def initialize
  55.     sailcat_battleani_initialize
  56.     @pending_animations = []
  57.   end
  58.   #--------------------------------------------------------------------------
  59.   # ● 立即切入动画
  60.   #     value : 新的动画ID
  61.   #--------------------------------------------------------------------------
  62.   def animation_id=(value)
  63.     # 当前动画未处理,又要播放新动画时
  64.     insert_animation(@animation_id) if value > 0 and @animation_id > 0
  65.     @animation_id = value
  66.   end
  67.   #--------------------------------------------------------------------------
  68.   # ● 缓存动画(在前)
  69.   #     ani_id  : 动画ID
  70.   #     damage  : 伤害
  71.   #     critical: 会心一击标志
  72.   #--------------------------------------------------------------------------
  73.   def insert_animation(ani_id, damage = @damage, critical = @critical)
  74.     # 追加到动画序列的开头
  75.     @pending_animations.shift([ani_id, damage, critical])
  76.   end
  77.   #--------------------------------------------------------------------------
  78.   # ● 缓存动画(在后)
  79.   #     ani_id  : 动画ID
  80.   #     damage  : 伤害
  81.   #     critical: 会心一击标志
  82.   #--------------------------------------------------------------------------
  83.   def pend_animation(ani_id, damage = @damage, critical = @critical)
  84.     # 追加到动画序列的末尾
  85.     @pending_animations.push([ani_id, damage, critical])
  86.   end
  87.   #--------------------------------------------------------------------------
  88.   # ● 动画等待判定
  89.   #--------------------------------------------------------------------------
  90.   def animation_pending?
  91.     not @pending_animations.empty?
  92.   end
  93.   #--------------------------------------------------------------------------
  94.   # ● 执行下一动画
  95.   #--------------------------------------------------------------------------
  96.   def next_animation
  97.     # 没有动画的情况下返回
  98.     return unless animation_pending?
  99.     # 动画没播放完的情况下返回
  100.     return if @animation_id > 0
  101.     animation = @pending_animations.shift
  102.     @animation_id = animation[0]
  103.     @damage = animation[1]
  104.     @critical = animation[2]
  105.     @animation_hit = @damage != Vocab.miss
  106.   end
  107. end
  108.   
  109. #==============================================================================
  110. # ■ Sprite_Battler
  111. #==============================================================================
  112. class Sprite_Battler < RPG::Sprite
  113.   include SailCat::BattleAnimation_Config
  114.   #--------------------------------------------------------------------------
  115.   # ● 效果中判定
  116.   #--------------------------------------------------------------------------
  117.   def effect?
  118.     @_whiten_duration > 0 or
  119.     @_appear_duration > 0 or
  120.     @_escape_duration > 0 or
  121.     @_animation_duration > 0 or
  122.     @_collapse_duration > 0 or
  123.     @_damage_duration > ($scene.phase4_step == 6 ? 0 : 40 - AWAIT_HIT_INTERVAL)
  124.   end
  125.   #--------------------------------------------------------------------------
  126.   # ● 刷新画面
  127.   #--------------------------------------------------------------------------
  128.   def update
  129.     super
  130.     # 战斗者为 nil 的情况下
  131.     if [url=home.php?mod=space&uid=133701]@battler[/url] == nil
  132.       self.bitmap = nil
  133.       loop_animation(nil)
  134.       return
  135.     end
  136.     # 总是更新
  137.     update_battler_change
  138.     update_battler_loop_animation
  139.     update_battler_main_phase
  140.     update_battler_blink
  141.     update_battler_appear
  142.     # 可见时更新
  143.     if @battler_visible
  144.       update_battler_escape
  145.       update_battler_whiten
  146.       update_battler_animation
  147.       update_battler_damage
  148.       update_battler_collapse
  149.     end
  150.     # 设置活动块的坐标
  151.     self.x = @battler.screen_x
  152.     self.y = @battler.screen_y
  153.     self.z = @battler.screen_z
  154.   end
  155.   #--------------------------------------------------------------------------
  156.   # ● 更新画面差异
  157.   #--------------------------------------------------------------------------
  158.   def update_battler_change
  159.     # 文件名和色相与当前情况有差异的情况下
  160.     if @battler.battler_name != @battler_name or
  161.        @battler.battler_hue != @battler_hue
  162.       # 获取、设置位图
  163.       @battler_name = @battler.battler_name
  164.       @battler_hue = @battler.battler_hue
  165.       self.bitmap = RPG::Cache.battler(@battler_name, @battler_hue)
  166.       @width = bitmap.width
  167.       [url=home.php?mod=space&uid=291977]@height[/url] = bitmap.height
  168.       self.ox = @width >> 1
  169.       self.oy = @height
  170.       # 如果是战斗不能或者是隐藏状态就把透明度设置成 0
  171.       if @battler.dead? or @battler.hidden
  172.         self.opacity = 0
  173.       end
  174.     end
  175.   end
  176.   #--------------------------------------------------------------------------
  177.   # ● 更新状态动画
  178.   #--------------------------------------------------------------------------
  179.   def update_battler_loop_animation
  180.     # 动画 ID 与当前的情况有差异的情况下
  181.     if @battler.damage == nil and
  182.        @battler.state_animation_id != @state_animation_id
  183.       @state_animation_id = @battler.state_animation_id
  184.       loop_animation($data_animations[@state_animation_id])
  185.     end
  186.   end
  187.   #--------------------------------------------------------------------------
  188.   # ● 更新显示效果
  189.   #--------------------------------------------------------------------------
  190.   def update_battler_main_phase
  191.     # 应该被显示的角色的情况下
  192.     if @battler.is_a?(Game_Actor) and @battler_visible
  193.       # 不是主状态的时候稍稍降低点透明度
  194.       if $game_temp.battle_main_phase
  195.         self.opacity += 3 if self.opacity < 255
  196.       else
  197.         self.opacity -= 3 if self.opacity > 207
  198.       end
  199.     end
  200.   end
  201.   #--------------------------------------------------------------------------
  202.   # ● 更新明灭
  203.   #--------------------------------------------------------------------------
  204.   def update_battler_blink
  205.     if @battler.blink
  206.       blink_on
  207.     else
  208.       blink_off
  209.     end
  210.   end
  211.   #--------------------------------------------------------------------------
  212.   # ● 更新出现
  213.   #--------------------------------------------------------------------------
  214.   def update_battler_appear
  215.     # 不可见的情况下
  216.     unless @battler_visible
  217.       # 出现
  218.       if not @battler.hidden and not @battler.dead? and
  219.          (@battler.damage == nil or @battler.damage_pop)
  220.         appear
  221.         @battler_visible = true
  222.       end
  223.     end
  224.   end
  225.   #--------------------------------------------------------------------------
  226.   # ● 更新逃跑
  227.   #--------------------------------------------------------------------------
  228.   def update_battler_escape
  229.     if @battler.hidden
  230.       $game_system.se_play($data_system.escape_se)
  231.       escape
  232.       @battler_visible = false
  233.     end
  234.   end
  235.   #--------------------------------------------------------------------------
  236.   # ● 更新白色闪烁
  237.   #--------------------------------------------------------------------------
  238.   def update_battler_whiten
  239.     if @battler.white_flash
  240.       whiten
  241.       @battler.white_flash = false
  242.     end
  243.   end
  244.   #--------------------------------------------------------------------------
  245.   # ● 更新动画
  246.   #--------------------------------------------------------------------------
  247.   def update_battler_animation
  248.     if @battler.animation_id != 0
  249.       animation = $data_animations[@battler.animation_id]
  250.       animation(animation, @battler.animation_hit)
  251.       @battler.animation_id = 0
  252.     end
  253.   end
  254.   #--------------------------------------------------------------------------
  255.   # ● 更新伤害
  256.   #--------------------------------------------------------------------------
  257.   def update_battler_damage
  258.     if @battler.damage_pop
  259.       damage(@battler.damage, @battler.critical)
  260.       @battler.damage = nil
  261.       @battler.critical = false
  262.       @battler.damage_pop = false
  263.     end
  264.   end
  265.   #--------------------------------------------------------------------------
  266.   # ● 更新死亡
  267.   #--------------------------------------------------------------------------
  268.   def update_battler_collapse
  269.     # 如果动画没有播放完,不执行死亡效果
  270.     return if @battler.animation_pending?
  271.     if @battler.damage == nil and @battler.dead?
  272.       if @battler.is_a?(Game_Enemy)
  273.         $game_system.se_play($data_system.enemy_collapse_se)
  274.       else
  275.         $game_system.se_play($data_system.actor_collapse_se)
  276.       end
  277.       collapse
  278.       @battler_visible = false
  279.     end
  280.   end
  281. end

  282. #==============================================================================
  283. # ■ Scene_Battle
  284. #==============================================================================
  285. class Scene_Battle
  286.   include SailCat::BattleAnimation_Config
  287.   #--------------------------------------------------------------------------
  288.   # ● 定义实例变量
  289.   #--------------------------------------------------------------------------
  290.   attr_accessor :animation1_id
  291.   attr_accessor :animation2_id
  292.   attr_reader :phase4_step
  293.   #--------------------------------------------------------------------------
  294.   # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  295.   #--------------------------------------------------------------------------
  296.   def update_phase4_step3
  297.     # 行动方动画 (ID 为 0 的情况下是白色闪烁)
  298.     @pending = false
  299.     if @animation1_id == 0
  300.       @active_battler.white_flash = true
  301.     else
  302.       # 如果行动者没有设置缓存动画,则设置默认的动画
  303.       unless @active_battler.animation_pending?
  304.         @active_battler.animation_id = @animation1_id
  305.         @active_battler.animation_hit = true
  306.       # 如果已经设置了缓存动画,则播放下一个缓存动画
  307.       else
  308.         @active_battler.next_animation
  309.         @pending |= @active_battler.animation_pending?
  310.       end
  311.     end
  312.     # 行动方动画没有播完的情况下,返回
  313.     return if @pending
  314.     # 为对像方准备默认动画的缓存(如果没有设置)
  315.     for target in @target_battlers
  316.       target.pend_animation(@animation2_id) unless target.animation_pending?
  317.     end
  318.     # 移至步骤 4
  319.     @phase4_step = 4
  320.   end
  321.   #--------------------------------------------------------------------------
  322.   # ● 刷新画面 (主回合步骤 4 : 对像方动画)
  323.   #--------------------------------------------------------------------------
  324.   def update_phase4_step4
  325.     # 对像方动画
  326.     @pending = false
  327.     for target in @target_battlers
  328.       # 战斗者显示下一动画
  329.       target.next_animation if target.animation_pending?
  330.       # 仍有动画没显示完的情况下,设置标志
  331.       @pending |= target.animation_pending?
  332.     end
  333.     # 弹出伤害的等待时间
  334.     @wait_count = @pending ? AWAIT_DAMAGE_INTERVAL : AWAIT_DAMAGE_FINAL
  335.     # 移至步骤 5
  336.     @phase4_step = 5
  337.   end
  338.   #--------------------------------------------------------------------------
  339.   # ● 刷新画面 (主回合步骤 5 : 显示伤害)
  340.   #--------------------------------------------------------------------------
  341.   def update_phase4_step5
  342.     # 隐藏帮助窗口
  343.     @help_window.visible = false
  344.     # 刷新状态窗口
  345.     @status_window.refresh
  346.     # 显示伤害
  347.     @target_battlers.each {|t| t.damage_pop = true if t.damage}
  348.     # 仍然有待播放缓存动画的情况下,移至步骤4,否则移到步骤6
  349.     @phase4_step = @pending ? 4 : 6
  350.   end
  351. end
复制代码

点评

看了半天不知道battler.pend_animation这些往哪里放,能提示下吗?希望能整合到我的工程里面。  发表于 2020-4-11 11:43

评分

参与人数 1赞 +1 收起 理由
taeckle + 1 大神威武!

查看全部评分

SailCat (小猫子·要开心一点) 共上站 24 次,发表过 11 篇文章 上 次 在: [2006年01月28日11:41:18 星期六] 从 [162.105.120.91] 到本站一游。
回复

使用道具 举报

梦石
0
星屑
15106
在线时间
2234 小时
注册时间
2019-1-24
回帖
964

R考场第七期纪念奖

 楼主| 发表于 2020-4-16 15:01:56 | 显示全部楼层
这么说吧,正常默认动画是一个行动方动画,一个对象方动画,顶多做出齐时动画,现在我想让这4个动画同时播放。
动画.png

点评

哎呀!费劲了这下。。。貌似论坛里面找到当初柳柳的叠加动画,但是苦于没有范例,不确定是不是能实现这个效果,状态法更是不知道咋整了  发表于 2020-4-16 21:20
我只能说思路,己方和对象都可以附加状态不是,第二个动画就是状态动画,状态动画可以多个,不嫌乱塞十个都能同时显示。视觉效果你自己调  发表于 2020-4-16 20:48
你这个相当于同时超过两个动画,而rm现在同时只能两个动画一个出手一个对象,用状态法可以出手两个,具体你问下菜刀我召唤精灵做法。  发表于 2020-4-16 20:42
要能这么做我好多效果早不发愁了,印象里应该是没接口了。最多同事两个动画,想再多得用纯脚本显示图片序列帧做了,超级不直观而且麻烦。  发表于 2020-4-16 20:41
回复

使用道具 举报

梦石
0
星屑
11806
在线时间
623 小时
注册时间
2016-8-25
回帖
1339

R考场第七期纪念奖

发表于 2020-4-16 20:18:07 | 显示全部楼层
分事件执行???

点评

?具体点呗  发表于 2020-4-16 20:30
回复

使用道具 举报

梦石
0
星屑
6483
在线时间
119 小时
注册时间
2020-1-8
回帖
205
发表于 2020-7-8 09:00:07 | 显示全部楼层
在Scene_battle4中 主回合4的step3(行动方动画)、step4(对象方动画)、step5(伤害显示)
可以自由添加步骤(得在Game_Battler中做好相应的判定)
主回合4的刷新 添加上自定义步骤即可
动画帧数小的话 很连贯的  
比如3.1左行动 3.2右行动 4.1左对象 4.2右对象
3.1→4.1→3.2→4.2
3.1→3.2→4.1→4.2
都可以自己排
角色是否双持武器,连击次数,伤害显示分开还是一起就楼主自己考虑去吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部