# A ボタンが押された場合 if Input.press?(Input::A) and not $ud_ok @twojump = 1 if @twojump == 0 and down1(((@x * 128 + @revise_x) / 128.0).round, ((@y * 128 + @revise_y) / 128.0).round, 5, true) if (not @apassed) and @twojump <= $airjump @apassed = true @jumpnow = JUMPMAX se_name = @twojump == 1 ? "ACT 跳02.wav" : "ACT 跳01.wav" Audio.se_play("Audio/SE/#{se_name}") @twojump += 1 else @jumpnow += 3 end else @apassed = false end #----------------------自由落体-------------------------------- if not $ud_ok @jumpnow -= 10 if @jumpnow < 0 $game_variables[1] = @jumpnow #$game_switches[1] = true @character_name = "主角ACT12下落" if $game_switches[1] != true @jumpnow = [@jumpnow, -JUMPMAX].max if not down1(((@x * 128 + @revise_x) / 128.0).round, ((@y * 128 + @revise_y) / 128.0).round, -@jumpnow, true) @jumpnow = 0 @twojump = 0 @character_name = "主角 行走 长袖" if $game_switches[1] != true #$game_switches[1] = false end elsif @jumpnow > 0 @character_name = @twojump == 1 ? "主角 ACT用跳跃" : "主角ACT11两段跳" @jumpnow = [@jumpnow, JUMPMAX].min if not up1(((@x * 128 + @revise_x) / 128.0).round, ((@y * 128 + @revise_y) / 128.0).round, @jumpnow, true) @jumpnow = 0 end end end
# A ボタンが押された場合
if Input.press?(Input::A) and not $ud_ok
@twojump = 1 if @twojump == 0 and down1(((@x * 128 + @revise_x) / 128.0).round,
((@y * 128 + @revise_y) / 128.0).round, 5, true)
if (not @apassed) and @twojump <= $airjump
@apassed = true
@jumpnow = JUMPMAX
se_name = @twojump == 1 ? "ACT 跳02.wav" : "ACT 跳01.wav"
Audio.se_play("Audio/SE/#{se_name}")
@twojump += 1
else
@jumpnow += 3
end
else
@apassed = false
end
#----------------------自由落体--------------------------------
if not $ud_ok
@jumpnow -= 10
if @jumpnow < 0
$game_variables[1] = @jumpnow
#$game_switches[1] = true
@character_name = "主角ACT12下落" if $game_switches[1] != true
@jumpnow = [@jumpnow, -JUMPMAX].max
if not down1(((@x * 128 + @revise_x) / 128.0).round,
((@y * 128 + @revise_y) / 128.0).round, -@jumpnow, true)
@jumpnow = 0
@twojump = 0
@character_name = "主角 行走 长袖" if $game_switches[1] != true
#$game_switches[1] = false
end
elsif @jumpnow > 0
@character_name = @twojump == 1 ? "主角 ACT用跳跃" : "主角ACT11两段跳"
@jumpnow = [@jumpnow, JUMPMAX].min
if not up1(((@x * 128 + @revise_x) / 128.0).round,
((@y * 128 + @revise_y) / 128.0).round, @jumpnow, true)
@jumpnow = 0
end
end
end
|