Hi i have a question, if i am making a window that has choices on it like a regular option window. But the window is going to be on Scene_Map, like this:
I was trying a few things
my problem is, when i start the game the character either moves with my options or when i freeze the graphics and update him the character ends up in a different spot, any reason why this is? I appreciate the help, its had me stumped, and as you can see I have tried several different ways!
I was trying a few things
Code:
class Scene_Map
alias old_main main
alias old_update update
def main
s1 = 'Quest::Name[1]'
s2 = 'Quest::Name[2]'
$cmd_window = Window_Command.new(160, [s1, s2])
$cmd_window.visible = true
$cmd_window.active = false
old_main
$cmd_window.dispose
end
def update
$cmd_window.update
old_update
if $cmd_window.active
update_quest
return
end
if Input.trigger?(Input::C)
unless $game_system.map_interpreter.running?
Graphics.freeze
@spriteset.freeze
$cmd_window.active = true
end
end
unless $game_player.moving?
call_quest
end
if $game_temp.quest_window_showing
return
end
end
def call_quest
$game_player.straighten
$game_temp.quest_calling = false
end
def update_quest
# nothing yet
end
end