- Joined
- Jun 3, 2013
- Messages
- 74
- Reaction score
- 10
- First Language
- English
- Primarily Uses
I tried to call the Scene_Item directly after pressing "x" by changing the "SceneManager.call(Scene_Menu)" to "SceneManager.call(Scene_Item)" in Scene_Map.
When I do that however, the scene opens up then instantly closes before I can let go of "x". IF I press "x" while running, the Item menu opens up without problem. Why does pressing "x" while running work? And why does standing still not work..? What's the reasoning behind this?
#--------------------------------------------------------------------------
# * Determine if Menu is Called due to Cancel Button
#--------------------------------------------------------------------------
def update_call_menu
if $game_system.menu_disabled || $game_map.interpreter.running?
@menu_calling = false
else
@menu_calling ||= Input.trigger?
B )
call_menu if @menu_calling && !$game_player.moving?
end
end
#--------------------------------------------------------------------------
# * Call Menu Screen
#--------------------------------------------------------------------------
def call_menu
Sound.play_ok
SceneManager.call(Scene_Item)
Window_MenuCommand::init_command_position
end
# * Determine if Menu is Called due to Cancel Button
#--------------------------------------------------------------------------
def update_call_menu
if $game_system.menu_disabled || $game_map.interpreter.running?
@menu_calling = false
else
@menu_calling ||= Input.trigger?
call_menu if @menu_calling && !$game_player.moving?
end
end
#--------------------------------------------------------------------------
# * Call Menu Screen
#--------------------------------------------------------------------------
def call_menu
Sound.play_ok
SceneManager.call(Scene_Item)
Window_MenuCommand::init_command_position
end
When I do that however, the scene opens up then instantly closes before I can let go of "x". IF I press "x" while running, the Item menu opens up without problem. Why does pressing "x" while running work? And why does standing still not work..? What's the reasoning behind this?
Last edited by a moderator:
