Just skimming through your event code in your last post ... if this is a parallel process event, how often are those conditions going to change? If not very often, you are going to be constantly telling your game to change the tileset and play the appropriate BGM, when it may already have the correct tileset and be playing the appropriate BGM. For these sorts of things, ideally you would do a check to see if the condition is met AND the desired action has not already happened.
Not very often. So maybe adding a wait event command of 60 at the end of the event? I'm honestly not sure how long of a wait I should put for any kind of parallel process event.
How do I do a check that condition is met and the desired action has not already happened?
i'd have a wait.X frames line in there. 60 fps X6 conditions to check, thats 360 checks the game is running every second for just that 1 event.
dropping that down with a wait command to only the 6 conditions checked once every 1-5 seconds can have big impact on weaker systems.
Thank you, I will do that. Though I am not sure how long of a wait. Like, is 60 acceptable or 600?
It handles conditionals the same as non-parallel events. If a condition isn't met, it's not going to execute what is inside the branch, it will just skip it or go to the ELSE branch. However, It will check to see if the condition is fulfilled every frame.
As for your parallel event, it could be optimized with the system I showed you above, since your Play BGM command is being called every frame. But it's not like it's super problematic, playing a BGM itself isn't taxing on the CPU. The game will run just fine. However, issues can start occurring when there are lots of little un-optimized small processes that add up.
Then again, I am a coder that dislike un-optimized system lol, so part of it is also just me trying to make everything too perfect xD.
This is good information to know. If I understand correctly, the code you shared is a script or is that actually done with switches? It looks like a one page event or two page event and I'm not sure.
As for being a coder, I appreciate you taking the time to share you wisdom. I am not a coder, unfortunately. That is not my strength but people who can code with ease are amazing to me.
I really appreciate everyone taking the time to comment here. Maybe I sound silly, but this forum here and all the people really are amazing. And Rpg Maker is an awesome product. I know it's just words on the screen but I just like sharing when I'm grateful.
😅
Ps: I don't know why you are called mushroom cake but I finally want to see I like your username. As I like to eat mushrooms and cake but not as one product. xD