You are on page 1of 3

bueno, este es un script que sirve para que una vez llegueis a un punto de vuestro

juego, o al terminar este, cambie la pantalla de t�tulo,yo en este caso he usado


como condicionante un interruptor activado, pero podeis poner lo que querais.

bien, pasa usarlo, abrimos el editor de scripts:

vamos al script main

buscar

# crear objeto de escena (pantalla de titulo)


$scene = scene_title.new

cambiar por:

# crear pantalla de titulo 2.0 by makerhack


$game_switches = 0
if $game_switches [numero de interruptor] == true
then
$scene = scene_title2.new
else
$scene = scene_title.new
end

ir al script secene_map

buscar

if $game_temp.to_title
$scene = scene_title.new
return
end

cambiar por

if $game_temp.to_title
$game_switches = 0
if $game_switches [numero de interruptor] == true
then
$scene = scene_title2.new
else
$scene = scene_title.new
end
return
end

ahora vamos al script scene_load

buscar:

def on_cancel
$game_system.se_play($data_system.cancel_se)
$scene = scene_title.new
end

cambiar por

def on_cancel
$game_system.se_play($data_system.cancel_se)
$game_switches = 0
if $game_switches [numero de interruptor] == true
then
$scene = scene_title2.new
else
$scene = scene_title.new
end
return
end
end

ahora vamos al script scene_end

buscar

def command_to_title
$game_system.se_play($data_system.decision_se)
audio.bgm_fade(800)
audio.bgs_fade(800)
audio.me_fade(800)
$scene = scene_title.new
end

cambiar por:

def command_to_title
$game_system.se_play($data_system.decision_se)
audio.bgm_fade(800)
audio.bgs_fade(800)
audio.me_fade(800)
$game_switches = 0
if $game_switches [numero de interruptor] == true
then
$scene = scene_title2.new
else
$scene = scene_title.new
end
end

ahora vamos al script scene_battle 1

buscar

if $game_temp.to_title
$scene = scene_title.new
return
end
cambiar por.

if $game_temp.to_title
$game_switches = 0
if $game_switches [numero de interruptor] == true
then
$scene = scene_title2.new
else
$scene = scene_title.new
end
return
end

ahora vamos al script scene_gameover

buscar

def update
# cuando pulsas el boton c
if input.trigger?(input::c)
# cambiar a pantalla de titulo
$scene = scene_title.new
end

cambiar por:

def update
# cuando pulsas el boton c
if input.trigger?(input::c)
# cambiar a pantalla de titulo
$game_switches = 0
if $game_switches [numero de interruptor] == true
then
$scene = scene_title2.new
else
$scene = scene_title.new
end
end

bueno, luego recordad crear la clase scene_title2 debajo de scene_title

e inicializarla, es decir poner

code
class scene_title2

dentro de esta, y luego poner ya la pantalla de titulo como la kerais

bueno recordad cambiar [numero de interruptor] por un n� de interruptor o no


funcionar

You might also like