Creado por: DEMYX09
Version: 0.1
Video:
http://www.youtube.com/watch?v=cGGyMA20Oa4&feature=related
Información:
un pequeño script que crea un nuevo comando el cual muestra una imagen(mapa).
Como usar:
-pegar sobre MAIN
-Importar imagen con el nombre "basicmap" ha GRAFIC\PICTURE
Version: 0.1
Video:
http://www.youtube.com/watch?v=cGGyMA20Oa4&feature=related
Información:
un pequeño script que crea un nuevo comando el cual muestra una imagen(mapa).
Como usar:
-pegar sobre MAIN
-Importar imagen con el nombre "basicmap" ha GRAFIC\PICTURE
Imagen necesaria:
Script:
Código:
#==============================================================================
#BASIC MAP
#Credits:Demyx09
# Web:http://gamefactory.forogratuito.net/
#Version: 0.1
#Necesitas una imagen en GRAFIC\PICTURE con el nombre "basicmap"
# medidas de la imagen:
# ancho: 785
# altura: 550
#==============================================================================
class Scene_Menu < Scene_Base
def create_command_window
s1 = Vocab::item
s2 = Vocab::skill
s3 = Vocab::equip
s4 = Vocab::status
s5 = Vocab::save
s6 = "Mapa" # aca puedes cambair el nombre del comando
s7 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6,s7])
@command_window.index = @menu_index
if $game_party.members.size == 0
@command_window.draw_item(0, false)
@command_window.draw_item(1, false)
@command_window.draw_item(2, false)
@command_window.draw_item(3, false)
end
if $game_system.save_disabled
@command_window.draw_item(4, false)
end
end
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 4
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 4
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0
$scene = Scene_Item.new
when 1,2,3
start_actor_selection
when 4
$scene = Scene_File.new(true, false, false)
when 5
$scene = Scene_mapamundi.new
when 6
$scene = Scene_End.new
end
end
end
end
#==============================================================================
class Scene_End < Scene_Base
def return_scene
$scene = Scene_Menu.new(6)
end
end
#==============================================================================
class Scene_mapamundi < Scene_Base
def start
super
@sprite = Sprite.new
@sprite.bitmap = Cache.picture("basicmap")
end
def terminate
super
@sprite.dispose
end
def return_scene
$scene = Scene_Menu.new(5)
end
def update
@sprite.update
if @sprite.x >= 0
@sprite.x = 0
end
if @sprite.x <= -210
@sprite.x = -210
end
if @sprite.y <= -135
@sprite.y = -135
end
if @sprite.y >= 0
@sprite.y = 0
end
if Input.trigger?(Input::B)
Sound.play_cancel
return_scene
elsif Input.press?(Input::LEFT)
@sprite.x += 2
elsif Input.press?(Input::RIGHT)
@sprite.x -= 2
elsif Input.press?(Input::DOWN)
@sprite.y -= 2
elsif Input.press?(Input::UP)
@sprite.y += 2
end
super
end
end