Hi, I'm kind of new to scripting... I've recently just finished reading "Learning Ruby the Hard Way" and I understand where classes / functions all come from as well as what they do. Since I don't know where to start with scripting, I've just decided to modify what I do know about scripts. Things were going good up until this problem came around. "Is it possible to make a Real-Time Background where events always update..?"
Here's what my goal was - Modify the script to gain these results:
- Remove the useless game options (done)
- Centralize the Main Menu (done)
- Remove the "Background Freeze" (failed.)
This is really hard to understand... I don't know where the game is "freezing" the background! I've tried everything in Scene_Base but couldn't find a solution. I also made an event character "reaper" that should chase me and give me a game over automatically in the background. that way I could test the menu and see if the reaper kills me or not in the background. so, here are the attempts I've done:
- Idea: Removing the Graphics.transition could stop the screen from changing while opening the menu window.
- Result: failed
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z2_zps002e2214.png[/IMG]
- I placed the Graphics.transition back and then decided that the problem might have come from the background not being updated.
- Idea: Find the update method and make it always update, even in the background
- Result: Failed too, but for a different reason.
class Scene_Base
#--------------------------------------------------------------------------
# * Main
#--------------------------------------------------------------------------
def main
start
post_start
update # until scene_changing? (removed this part in hopes that the background will always update!)
pre_terminate
terminate
end
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z3_zps77904640.png[/IMG]
- I checked to see what was causing this and found out that Scene_Base is parent of the class Scene_Title. I couldn't make any changes to this class without affecting other classes, so I decided to try and make a new class of Scene_Base with a different name called "Scene_Real_Time". after that I made the "Scene_MenuBase" inherit the "Scene_Real_Time" copy with update method changed:
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z5_zpsdfc7e149.png[/IMG]
- Now, I tried to start the game again and the title loaded properly.. but when I tried opening the menu, the game infinitely updated itself not allowing me to scroll down... the event box that I set up wasn't even activating until I closed the infinite update menu..
- Tried to use a code that would stop the background from loading up.. the result was a black background and events still frozen.
I'm having a difficult time understanding this area. It feels like something that I can't change / modify.. but I'm not so sure. This is why I'm asking for help, Is this a built In feature? or can I actually change it..? and If I can.. how?
Any form of help would be appreciated.. thanks for your time and hoping for a response on this.
Here's what my goal was - Modify the script to gain these results:
- Remove the useless game options (done)
- Centralize the Main Menu (done)
- Remove the "Background Freeze" (failed.)
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z1_zps72c59977.png[/IMG]
This is really hard to understand... I don't know where the game is "freezing" the background! I've tried everything in Scene_Base but couldn't find a solution. I also made an event character "reaper" that should chase me and give me a game over automatically in the background. that way I could test the menu and see if the reaper kills me or not in the background. so, here are the attempts I've done:
- Idea: Removing the Graphics.transition could stop the screen from changing while opening the menu window.
- Result: failed
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z2_zps002e2214.png[/IMG]
- I placed the Graphics.transition back and then decided that the problem might have come from the background not being updated.
- Idea: Find the update method and make it always update, even in the background
- Result: Failed too, but for a different reason.
class Scene_Base
#--------------------------------------------------------------------------
# * Main
#--------------------------------------------------------------------------
def main
start
post_start
update # until scene_changing? (removed this part in hopes that the background will always update!)
pre_terminate
terminate
end
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z3_zps77904640.png[/IMG]
- I checked to see what was causing this and found out that Scene_Base is parent of the class Scene_Title. I couldn't make any changes to this class without affecting other classes, so I decided to try and make a new class of Scene_Base with a different name called "Scene_Real_Time". after that I made the "Scene_MenuBase" inherit the "Scene_Real_Time" copy with update method changed:
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/z5_zpsdfc7e149.png[/IMG]
- Now, I tried to start the game again and the title loaded properly.. but when I tried opening the menu, the game infinitely updated itself not allowing me to scroll down... the event box that I set up wasn't even activating until I closed the infinite update menu..
- Tried to use a code that would stop the background from loading up.. the result was a black background and events still frozen.
I'm having a difficult time understanding this area. It feels like something that I can't change / modify.. but I'm not so sure. This is why I'm asking for help, Is this a built In feature? or can I actually change it..? and If I can.. how?
Any form of help would be appreciated.. thanks for your time and hoping for a response on this.