赞 | 12 |
VIP | 107 |
好人卡 | 6 |
积分 | 4 |
经验 | 31122 |
最后登录 | 2024-6-29 |
在线时间 | 1606 小时 |
Lv2.观梦者 傻♂逼
- 梦石
- 0
- 星屑
- 374
- 在线时间
- 1606 小时
- 注册时间
- 2007-3-13
- 帖子
- 6562
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
比起原版增加了可变性
直接添加到Main上面即可
由于跳跃极快不提供截图
SHIFT加速可以跳的更快哦~~ {/dy}
正文:
- $普通跳跃 = 2
- $跑步跳跃 = 3
- class Game_Player
- alias jump_update update
- #--------------------------------------------------------------------------
- # ● 刷新画面
- #--------------------------------------------------------------------------
- def update
- #============================================================================================
- # Advanced Jump Edit By: Title Loan Man Edit For VX by yff
- #==============================================================================
- unless $game_map.interpreter.running?
- if Input.press?(Input::RIGHT) and Input.press?(Input::Z)
- if passable?(@x+$普通跳跃, @y)#, 4) # and $game_map.terrain_tag($game_player.x+1, $game_player.y) != 6
- # Audio.se_play ("Audio/SE/016-Jump02", 90, 100)
- jump($普通跳跃,0)
- end
- end
- if Input.press?(Input::LEFT) and Input.press?(Input::Z)
- if passable?(@x-$普通跳跃, @y)#, 6) # and $game_map.terrain_tag($game_player.x-1, $game_player.y) != 6
- # Audio.se_play ("Audio/SE/016-Jump0$普通跳跃", 90, 100)
- jump(-$普通跳跃,0)
- end
- end
- if Input.press?(Input::DOWN) and Input.press?(Input::Z)
- if passable?(@x, @y+$普通跳跃)#, 8) # # and $game_map.terrain_tag($game_player.x, $game_player.y+1) != 6
- # Audio.se_play ("Audio/SE/016-Jump0$普通跳跃", 90, 100)
- jump(0,$普通跳跃)
- end
- end
- if Input.press?(Input::UP) and Input.press?(Input::Z)
- if passable?(@x, @y-$普通跳跃)#, $普通跳跃) # # and $game_map.terrain_tag($game_player.x, $game_player.y-1) != 6
- # Audio.se_play ("Audio/SE/016-Jump0$普通跳跃", 90, 100)
- jump(0,-$普通跳跃)
- end
- end
- if Input.trigger?(Input::Z)
- # Audio.se_play ("Audio/SE/016-Jump0$普通跳跃", 90, 100)
- jump(0,0)
- end
- end
-
- unless $game_map.interpreter.running?
- if Input.press?(Input::SHIFT)
- if Input.press?(Input::RIGHT) and Input.press?(Input::Z)
- if passable?(@x+$跑步跳跃, @y)#, 4) # and $game_map.terrain_tag($game_player.x+1, $game_player.y) != 6
- # Audio.se_play ("Audio/SE/016-Jump02", 90, 100)
- jump($跑步跳跃,0)
- end
- end
- if Input.press?(Input::LEFT) and Input.press?(Input::Z)
- if passable?(@x-$跑步跳跃, @y)#, 6) # and $game_map.terrain_tag($game_player.x-1, $game_player.y) != 6
- # Audio.se_play ("Audio/SE/016-Jump02", 90, 100)
- jump(-$跑步跳跃,0)
- end
- end
- if Input.press?(Input::DOWN) and Input.press?(Input::Z)
- if passable?(@x, @y+$跑步跳跃)#, 8) # # and $game_map.terrain_tag($game_player.x, $game_player.y+1) != 6
- # Audio.se_play ("Audio/SE/016-Jump02", 90, 100)
- jump(0,$跑步跳跃)
- end
- end
- if Input.press?(Input::UP) and Input.press?(Input::Z)
- if passable?(@x, @y-$跑步跳跃)#, 2) # # and $game_map.terrain_tag($game_player.x, $game_player.y-1) != 6
- # Audio.se_play ("Audio/SE/016-Jump02", 90, 100)
- jump(0,-$跑步跳跃)
- end
- end
- if Input.trigger?(Input::Z)
- # Audio.se_play ("Audio/SE/016-Jump02", 90, 100)
- jump(0,0)
- end
- end
- end
- jump_update
- end
- end
复制代码 |
|