| 赞 | 0  | 
 
| VIP | 0 | 
 
| 好人卡 | 2 | 
 
| 积分 | 3 | 
 
| 经验 | 6114 | 
 
| 最后登录 | 2013-9-3 | 
 
| 在线时间 | 371 小时 | 
 
 
 
 
 
Lv2.观梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 334 
 
        - 在线时间
 - 371 小时
 
        - 注册时间
 - 2010-8-23
 
        - 帖子
 - 418
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
 本帖最后由 勇敢的馒头 于 2011-1-8 11:41 编辑  
 
我看到很多网游虽然标明是45度的游戏,但实际上他们的地图是差不多30度左右的视角 
 
 
我们现在的45度脚本来制作游戏,和画地图,其实出来的效果是每格为32X32这样的 
而普通的网游和现在市面上的45度游戏,地图则是 64X32 
 
 
 
我们真正能做到的效果其实是这样,GBA《我们的太阳》 
 
![]()  
网游 
 
我就在想,能否也改变RM的行走度数,让人物也像网游那样30度行走 
 
我简单修改了2个地方的数值,就可以实现 
 
Game_Character 3 第101-174替换如下- #--------------------------------------------------------------------------
 
 -   # ● 向左下移动
 
 -   #--------------------------------------------------------------------------
 
 -   def move_lower_left
 
 -     # 没有固定面向的场合
 
 -     unless @direction_fix
 
 -       # 朝向是右的情况下适合的面是左面、朝向是上的情况下适合的面是下面
 
 -       @direction = (@direction == 6 ? 4 : @direction == 8 ? 2 : @direction)
 
 -     end
 
 -     # 下→左、左→下 的通道可以通行的情况下
 
 -     if (passable?(@x, @y, 2) and passable?(@x, @y + 1, 4)) or
 
 -        (passable?(@x, @y, 4) and passable?(@x - 1, @y, 2))
 
 -       # 更新坐标
 
 -       @x -= 0.2
 
 -       @y += 0.1
 
 -       # 增加步数
 
 -       increase_steps
 
 -     end
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 向右下移动
 
 -   #--------------------------------------------------------------------------
 
 -   def move_lower_right
 
 -     # 没有固定面向的场合
 
 -     unless @direction_fix
 
 -       # 朝向是右的情况下适合的面是左面、朝向是上的情况下适合的面是下面
 
 -       @direction = (@direction == 4 ? 6 : @direction == 8 ? 2 : @direction)
 
 -     end
 
 -     # 下→右、右→下 的通道可以通行的情况下
 
 -     if (passable?(@x, @y, 2) and passable?(@x, @y + 1, 6)) or
 
 -        (passable?(@x, @y, 6) and passable?(@x + 1, @y, 2))
 
 -       # 更新坐标
 
 -       @x += 0.2
 
 -       @y += 0.1
 
 -       # 增加步数
 
 -       increase_steps
 
 -     end
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 向左上移动
 
 -   #--------------------------------------------------------------------------
 
 -   def move_upper_left
 
 -     # 没有固定面向的场合
 
 -     unless @direction_fix
 
 -       # 朝向是右的情况下适合的面是左面、朝向是上的情况下适合的面是下面
 
 -       @direction = (@direction == 6 ? 4 : @direction == 2 ? 8 : @direction)
 
 -     end
 
 -     # 上→左、左→上 的通道可以通行的情况下
 
 -     if (passable?(@x, @y, 8) and passable?(@x, @y - 1, 4)) or
 
 -        (passable?(@x, @y, 4) and passable?(@x - 1, @y, 8))
 
 -       # 更新坐标
 
 -       @x -= 0.2
 
 -       @y -= 0.1
 
 -       # 增加步数
 
 -       increase_steps
 
 -     end
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 向右上移动
 
 -   #--------------------------------------------------------------------------
 
 -   def move_upper_right
 
 -     # 没有固定面向的场合
 
 -     unless @direction_fix
 
 -       # 朝向是右的情况下适合的面是左面、朝向是上的情况下适合的面是下面
 
 -       @direction = (@direction == 4 ? 6 : @direction == 2 ? 8 : @direction)
 
 -     end
 
 -     # 上→右、右→上 的通道可以通行的情况下
 
 -     if (passable?(@x, @y, 8) and passable?(@x, @y - 1, 6)) or
 
 -        (passable?(@x, @y, 6) and passable?(@x + 1, @y, 8))
 
 -       # 更新坐标
 
 -       @x += 0.2
 
 -       @y -= 0.1
 
 -       # 增加步数
 
 -       increase_steps
 
 -     end
 
 -   end
 
  复制代码 Game_Player  212-222 替换如下-       case Input.dir8
 
 -       when 1
 
 -         move_lower_left
 
 -       when 2
 
 -         move_down
 
 -       when 3
 
 -         move_lower_right  
 
 -       when 4
 
 -         move_left
 
 -       when 6
 
 -         move_right
 
 -       when 7
 
 -         move_upper_left  
 
 -       when 8
 
 -         move_up
 
 -       when 9
 
 -         move_upper_right  
 
 -       end
 
 -     end
 
  复制代码 就可以实现效果,但是目前BUG多多,求各位一起修改成完整版 
 
30度行走菜鸟BUG初版 
 
30度行走.rar
(187.37 KB, 下载次数: 121)
 |   
 
 
 
 |