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

Project1

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

超级横版战斗的角色位置如何修改

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
25
在线时间
0 小时
注册时间
2007-8-11
帖子
3
跳转到指定楼层
1
发表于 2007-8-11 17:43:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
我知道大家都对超级横版战斗这脚本几乎都放弃
原因是需要大量的美工
但是我觉得非常适合我
现在碰到一个问题
我想请教大家
因为我的战斗是采用直立式
跟原本的横版是不同
造成我的人物在攻击时会偏一边
有人可以帮我解决这各问题




截图

http://rpg.blue/upload_program/files/1.0001.jpg

角色要修改到红色圈中

http://rpg.blue/upload_program/files/1.0002.jpg

http://rpg.blue/upload_program/files/1.0003.jpg

版务信息:本贴由楼主自主结贴~

Lv1.梦旅人

梦石
0
星屑
25
在线时间
0 小时
注册时间
2007-8-11
帖子
3
2
 楼主| 发表于 2007-8-11 17:43:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
我知道大家都对超级横版战斗这脚本几乎都放弃
原因是需要大量的美工
但是我觉得非常适合我
现在碰到一个问题
我想请教大家
因为我的战斗是采用直立式
跟原本的横版是不同
造成我的人物在攻击时会偏一边
有人可以帮我解决这各问题




截图

http://rpg.blue/upload_program/files/1.0001.jpg

角色要修改到红色圈中

http://rpg.blue/upload_program/files/1.0002.jpg

http://rpg.blue/upload_program/files/1.0003.jpg

版务信息:本贴由楼主自主结贴~

Lv1.梦旅人

梦石
0
星屑
50
在线时间
12 小时
注册时间
2007-1-10
帖子
44
3
发表于 2007-8-11 21:43:05 | 只看该作者
横版超级战斗,是以战斗图的宽来确定移动位置的,纵版的时候只要改为高就可以了...

在超级横版战斗大约800行的位置找到如下脚本(或者直接搜索吧....)
     if @active_battler.is_a?(Game_Enemy)
       if @active_battler.restriction == 3
         target = $game_troop.random_target_enemy
       elsif @active_battler.restriction == 2
         target = $game_party.random_target_actor
       else
         index = @active_battler.current_action.target_index
         target = $game_party.smooth_target_actor(index)
       end
#======== here is the setting for the movement & animation...
         x = target.screen_x - RPG::Cache.battler(@active_battler.battler_name, @active_battler.battler_hue).width/6
         @spriteset.enemy_sprites[@active_battler.index].enemy_pose(0)
         @spriteset.enemy_sprites[@active_battler.index].move(x, target.screen_y, 10)
#========= here if you look at the RPG's movement settings you'll see
#========= that he takes the number 40 for the speed of the animation...
#========= i thing thats too fast so i settet it down to 10 so looks smoother...
     end
     if @active_battler.is_a?(Game_Actor)
       if @active_battler.restriction == 3
         target = $game_party.random_target_actor
       elsif @active_battler.restriction == 2
         target = $game_troop.random_target_enemy
       else
         index = @active_battler.current_action.target_index
         target = $game_troop.smooth_target_enemy(index)
       end
#======= the same thing for the player... ^-^
       x = target.screen_x + RPG::Cache.battler(@active_battler.battler_name, @active_battler.battler_hue).width/8
       @spriteset.actor_sprites[@active_battler.index].pose(0)
       @spriteset.actor_sprites[@active_battler.index].move(x, target.screen_y, 10)
     end

更改如下(直接在默认脚本上改的,如果LZ对此脚本改动不大可直接替换)
     if @active_battler.is_a?(Game_Enemy)
       if @active_battler.restriction == 3
         target = $game_troop.random_target_enemy
       elsif @active_battler.restriction == 2
         target = $game_party.random_target_actor
       else
         index = @active_battler.current_action.target_index
         target = $game_party.smooth_target_actor(index)
       end
         y = target.screen_y - RPG::Cache.battler(@active_battler.battler_name, @active_battler.battler_hue).height/10#这是除以敌人战斗图的行数+2(这样就会显示在上方),我是在默认脚本里改的,LZ就以自己的实际情况而定
         @spriteset.enemy_sprites[@active_battler.index].enemy_pose(0)
         @spriteset.enemy_sprites[@active_battler.index].move(target.screen_x, y, 10) #如果需要调整位置的话就在这里的x,y上加减

     end
     if @active_battler.is_a?(Game_Actor)
       if @active_battler.restriction == 3
         target = $game_party.random_target_actor
       elsif @active_battler.restriction == 2
         target = $game_troop.random_target_enemy
       else
         index = @active_battler.current_action.target_index
         target = $game_troop.smooth_target_enemy(index)
       end
       y = target.screen_y + RPG::Cache.battler(@active_battler.battler_name, @active_battler.battler_hue).height/12 #这是除以角色战斗图的行数-2(这样就会显示在下方
       @spriteset.actor_sprites[@active_battler.index].pose(0)
       @spriteset.actor_sprites[@active_battler.index].move(target.screen_x, y, 10)#同上
     end

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
[line]3,#ffffff[/line]
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
25
在线时间
0 小时
注册时间
2007-8-11
帖子
3
4
 楼主| 发表于 2007-8-12 00:58:01 | 只看该作者
感谢
你帮我解决了问题
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2026-6-27 22:32

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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