why is this acting so difficult?
when I hit enter on the Game Over screen it teleports me back to the event that I used to force the Game Over, and then it runs the code to transfer, but at the same time runs the game over again. What the fuk?
Code:
class Scene_Gameover
alias save_opt_upd update
def update
save_opt_upd
if Input.trigger?(Input::C)
$game_temp.player_transferring = true
$game_temp.player_new_map_id = 7
$game_temp.player_new_x = 4
$game_temp.player_new_y = 5
$game_temp.player_new_direction = 0
$scene = Scene_Map.new
$game_map.autoplay
end
end
end
when I hit enter on the Game Over screen it teleports me back to the event that I used to force the Game Over, and then it runs the code to transfer, but at the same time runs the game over again. What the fuk?