设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3932|回复: 4
打印 上一主题 下一主题

[已经过期] 如何在横版RPG(VX)中也让敌人实现普通攻击的动画?

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
132 小时
注册时间
2010-9-30
帖子
100
跳转到指定楼层
1
发表于 2011-1-19 00:12:48 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
在横版VX战斗中让敌人 在普通攻击中做出动作(动画)要怎么做啊?或者需要改什么脚本才可以?请高人指教下:dizzy:

Lv1.梦旅人

梦石
0
星屑
55
在线时间
90 小时
注册时间
2009-5-25
帖子
73
2
发表于 2011-1-20 12:04:20 | 只看该作者
首先确定你的敌人角色有行走图
然后设置横板中的敌人动作就行
如果只有行走图的话效果还是感觉简陋的话
那只能你自己画敌人的战斗动作了

参考

点评

敌人武器画出来不就好了吗?比脚本更省事  发表于 2011-1-20 14:41
你这个不错啊!敌人的战斗动画倒是可以拼出一些来,要是敌人用行走图也可以做到,但是就是不知道怎么把武器安到敌人的攻击动作上。  发表于 2011-1-20 13:08
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
615
在线时间
280 小时
注册时间
2006-4-9
帖子
203
3
发表于 2011-1-20 16:11:58 | 只看该作者
#==============================================================================
# ■ Enemy Animated Battlers for RPG Tankentai Sideview Battle System
#     1.17.09
#------------------------------------------------------------------------------
#  Script by Kylock
#  Updated by Mr. Bubble
#  Visual Guide at:
#  http://www.rpgrevolution.com/for ... ndpost&p=212499
#==============================================================================
#   Easy to implement interface to specify animated battlers for enemies.  Note
# enemy batters must be formatted THE SAME as your character battlers.  Also,
# you must have 2 copies of your enemy battler:

#   <game folder>\Graphics\Battlers\$<enemy name>.png
#   <game folder>\Graphics\Characters\$<enemy name>.png
#
#   If you are using this script with the Kaduki's Battlers setup, enemies must
# have "_1", "_2" and "_3" files in the Characters folder similar to the
# Kaduki actors.  See inside Kaduki demo's Characters folder for an example.
#
#   If used with IAB, enemies must have a 4x11 "_1" file in the Characters
# folder. See inside IAB demo's Characters folder for an example.
#  
#   When you set up your "troops" for the encounter, you may need to tweak the
# positioning of the enemy as the sprites look funny and the actual placement
# may be slightly off.  A few battle tests should be sufficient.
#   Enemy shadows may also look odd.  You may adjust or change the shadow using
# the respective settings within this script.
#
#  All settings in this add-on can also be done within the Configuration script.
#==============================================================================

module K_ENEMY_BATTLERS
  ENEMY_ID = [1,2,3] # list of enemies with batter sprites(ex. [1,24])
end

class Game_Enemy < Game_Battler
  #--------------------------------------------------------------------------
  # ● Enemy Screen Positioning Adjustment
  #--------------------------------------------------------------------------
  # Postive Y-values move the battler down. Negatives move the shadow up.
  # If the battler is offscreen, it is suggested to use this to function.
  #
  # return [ 0, 0]  <- [X-coordinate、Y-coordinate]
  alias bubs_eab_position_plus position_plus
  def position_plus
    case @enemy_id
    when 1 # Enemy ID
      return [0, 128] # Coordinates
   
    when 2 # Enemy ID
      return [0, 128] # Coordinates
    end
    bubs_eab_position_plus
  end
  #--------------------------------------------------------------------------
  # ● Enemy Shadow
  #--------------------------------------------------------------------------
  # Define a separate shadow image file for an enemy battler.
  #
  # return "shadow01" <- Image file name in .Graphics/Characters
  # return "" <- No shadow used.
  alias bubs_eab_shadow shadow
  def shadow
    case @enemy_id
    when 1 # Enemy ID
      return "shadow00"
    when 2 # Enemy ID
      return "shadow00"
    end
    bubs_eab_shadow
  end
  #--------------------------------------------------------------------------
  # ● Enemy Shadow Adjustment
  #--------------------------------------------------------------------------
  # Postive Y-values move the shadow down. Negatives move the shadow up.
  #
  # return [ X-Coordinate, Y-Coordinate]
  alias bubs_eab_shadow_plus shadow_plus
  def shadow_plus
    case @enemy_id
    when 1 # Enemy ID
      return [ 0, 4]
    when 2 # Enemy ID
      return [ 0, 4]
    end
    bubs_eab_shadow_plus
  end
  #--------------------------------------------------------------------------
  # ● Enemy Animated Battler Settings
  #--------------------------------------------------------------------------
  alias keb_anime_on anime_on
  def anime_on
    for x in K_ENEMY_BATTLERS::ENEMY_ID
      return true if @enemy_id == x
    end
    keb_anime_on
  end
  #--------------------------------------------------------------------------
  # ● Enemy Invert Settings
  #--------------------------------------------------------------------------
  alias keb_action_mirror action_mirror
  def action_mirror
    for x in K_ENEMY_BATTLERS::ENEMY_ID
      return true if @enemy_id == x
    end
    keb_action_mirror
  end
end


配合SBS

点评

罗列代码请使用“代码”功能,谢谢  发表于 2011-1-21 13:28
先谢谢啊 不知道 能不能成功  发表于 2011-1-20 18:20

评分

参与人数 1星屑 +2 收起 理由
ypkkjt + 2 我很赞同

查看全部评分

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
132 小时
注册时间
2010-9-30
帖子
100
4
 楼主| 发表于 2011-1-20 18:18:41 | 只看该作者
cangyu2004 发表于 2011-1-20 16:11
#==============================================================================
# ■ Enemy Animated  ...

:handshake谢谢啊 不知道 能不能成功
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
615
在线时间
280 小时
注册时间
2006-4-9
帖子
203
5
发表于 2011-1-21 19:10:54 | 只看该作者


一般来说,是没有问题的。


cangyu2004于2011-1-21 23:13补充以下内容:
- - 还差很远啊。。。

点评

- -!大哥~~你的吞食天地蛮有个性的!是不是成品啊拿来玩玩  发表于 2011-1-21 23:12
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-3 11:57

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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