查看: 1620|回复: 4

[已经过期] 我改五人横版战斗时Spriteset_Battle75行出错不能战斗

  [复制链接]
梦石
0
星屑
334
在线时间
6 小时
注册时间
2011-6-7
回帖
2
发表于 2011-6-11 16:06:58 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 fcdzz852 于 2011-6-11 16:09 编辑

我改五人横版战斗时Spriteset_Battle75行出错不能战斗: 搜狗截图_2011-06-11_16-05-44.png
梦石
0
星屑
59
在线时间
383 小时
注册时间
2011-1-21
回帖
306
发表于 2011-6-11 16:08:12 | 显示全部楼层
把你改的发上来啊
回复

使用道具 举报

梦石
0
星屑
334
在线时间
6 小时
注册时间
2011-6-7
回帖
2
 楼主| 发表于 2011-6-11 16:10:10 | 显示全部楼层
本帖最后由 fcdzz852 于 2011-6-11 16:11 编辑
get 发表于 2011-6-11 16:08
把你改的发上来啊


def update
    # 刷新角色的活动块 (对应角色的替换)
    @actor_sprites[0].battler = $game_party.actors[0]
    @actor_sprites[1].battler = $game_party.actors[1]
    @actor_sprites[2].battler = $game_party.actors[2]
    @actor_sprites[3].battler = $game_party.actors[3]
  ###########################################################################
    @actor_sprites[4].battler = $game_party.actors[4]  #引入新的Battler图形
  ###########################################################################
    # 战斗背景的文件名与现在情况有差异的情况下
    if @battleback_name != $game_temp.battleback_name
      @battleback_name = $game_temp.battleback_name
      if @battleback_sprite.bitmap != nil
        @battleback_sprite.bitmap.dispose
      end
      @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
      @battleback_sprite.src_rect.set(0, 0, 640, 320)
    end
    # 刷新战斗者的活动块
    for sprite in @enemy_sprites + @actor_sprites
      sprite.update
    end
    # 刷新天气图形
    @weather.type = $game_screen.weather_type
    @weather.max = $game_screen.weather_max
    @weather.update
    # 刷新图片活动块
    for sprite in @picture_sprites
      sprite.update
    end
    # 刷新计时器活动块
    @timer_sprite.update
    # 设置画面的色调与震动位置
    @viewport1.tone = $game_screen.tone
    @viewport1.ox = $game_screen.shake
    # 设置画面的闪烁色
    @viewport4.color = $game_screen.flash_color
    # 刷新显示端口
    @viewport1.update
    @viewport2.update
    @viewport4.update
  end
end
红色字为出错的一行
回复

使用道具 举报

虚構歪曲

梦石
0
星屑
354
在线时间
1196 小时
注册时间
2010-12-18
回帖
3842

贵宾

发表于 2011-6-11 19:24:10 | 显示全部楼层
本帖最后由 忧雪の伤 于 2011-6-11 19:24 编辑
@actor_sprites[4].battler = $game_party.actors[4]

@actor_sprites[4]不存在或nil。

评分

参与人数 1星屑 +200 梦石 +2 收起 理由
「旅」 + 200 + 2

查看全部评分

回复

使用道具 举报

梦石
0
星屑
334
在线时间
6 小时
注册时间
2011-6-7
回帖
2
 楼主| 发表于 2011-6-11 20:26:23 | 显示全部楼层
谢谢,已解决
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部