查看: 92|回复: 0

[转载发布] 轮流释放全体技能挨打方动画

[复制链接]
  • TA的每日心情
    开心
    1 小时前
  • 签到天数: 37 天

    连续签到: 3 天

    [LV.5]常住居民I

    2028

    主题

    32

    回帖

    7260

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    0
    卡币
    5184
    OK点
    16
    积分
    7260
    发表于 同元一千年八月五日(秋) | 显示全部楼层 |阅读模式
    1.       #--------------------------------------------------------------------------  # ● 刷新画面 (主回合步骤 3 : 行动方动画)  #--------------------------------------------------------------------------  def update_phase4_step3    # 行动方动画 (ID 为 0 的情况下是白色闪烁)    if @animation1_id == 0      @active_battler.white_flash = true    else      @active_battler.animation_id = @animation1_id      @active_battler.animation_hit = true    end    ##########添加    @temptarget.clear    for target in @target_battlers      @temptarget.push(target)    end    ###########    # 移至步骤 4    @phase4_step = 4  end  #--------------------------------------------------------------------------  # ● 刷新画面 (主回合步骤 4 : 对像方动画)  #--------------------------------------------------------------------------  def update_phase4_step4###########完全改了    a = @temptarget.pop    a.animation_id = @animation2_id    a.animation_hit = (a.damage != "Miss")    @phase4_step = 5 if(@temptarget.empty? )    @wait_count = 8   ########################  end复制代码
    复制代码
    def main里声明下@temptarget=[]数组

    看到提问区有人问 觉得 这还是有通用性的 所以临时改了下 仿VX 也不知道VA来着 反正具体效果看范例
                 本帖来自P1论坛作者yagami,因Project1站服务器在国外有时候访问缓慢不方便作者交流学习,经联系P1站长fux2同意署名转载一起分享游戏制作经验,共同为国内独立游戏作者共同创造良好交流环境,原文地址:https://rpg.blue/forum.php?mod=viewthread&tid=339019  若有侵权,发帖作者可联系底部站长QQ在线咨询功能删除,谢谢。

    本帖子中包含更多资源

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

    x
    天天去同能,天天有童年!
    回复 论坛版权

    使用道具 举报

    ahome_bigavatar:guest
    ahome_bigavatar:welcomelogin
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2024-5-10 11:12 , Processed in 0.061396 second(s), 44 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表