- Joined
- Nov 21, 2017
- Messages
- 6
- Reaction score
- 0
- First Language
- Filipino
- Primarily Uses
- RMVXA
Hi, I was wondering if there is something that I could add into the Scene_Menu (or any script in the game) that makes the game wait n frames before opening other windows in the menu?
For example, when I press X to bring out the menu, I'd like the game to wait 5 frames before opening the gold window, then another 5 frames before opening the menu status window. (Instead of bringing them all up at once)
I tried modifying the first several lines in Scene_Menu:
but it only brings out an error when I try to open up the menu (Script 'Scene_Menu' line 20: FiberError occurred. Can't yield from root fiber)
I also tried adding in Graphics.wait(5) instead of wait(5) but all it does is make the game wait 10 frames before opening all the windows at once.
Any help is greatly appreciated!!
(I apologize in advance for any grammar mistakes I might have made)
For example, when I press X to bring out the menu, I'd like the game to wait 5 frames before opening the gold window, then another 5 frames before opening the menu status window. (Instead of bringing them all up at once)
I tried modifying the first several lines in Scene_Menu:
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# * Start Processing
#--------------------------------------------------------------------------
def start
super
create_command_window
wait(5)
create_gold_window
wait(5)
create_status_window
end
def wait(duration)
duration.times { Fiber.yield } #<-- this is line 20
end
#--------------------------------------------------------------------------
# * Start Processing
#--------------------------------------------------------------------------
def start
super
create_command_window
wait(5)
create_gold_window
wait(5)
create_status_window
end
def wait(duration)
duration.times { Fiber.yield } #<-- this is line 20
end
I also tried adding in Graphics.wait(5) instead of wait(5) but all it does is make the game wait 10 frames before opening all the windows at once.
Any help is greatly appreciated!!
(I apologize in advance for any grammar mistakes I might have made)


