Hello guys 🙂
I'm planning to develop a Farming game in android,
I want to run the event of the plots (crops) via Common Events by Changing its image, controlling switches etc.
Question:
- The number of plots that i want to create is at least 50 so i'll create 50 Common Events or put that 50 Common Events In 1 event only? Suggestion for this? 🙂
- If i make more parallel process on my game is there any bad effects? In terms of developing it on Mobile?
Thank you for your response 🙂
You have to keep in mind that parallel event will work without stopping. It can use a lot of ressources.
One time, I made perk system with 14 parallel common event which were checking the level of the actors constantly to give them the Perks points.
The game was lagging like hell. And my events were just checking variables. Avoid making a lot of parallel events if tey will have to work at the same time.
1 parallel event is way better in my opinion.
The system I made was for PC. I didn't use any wait at the beginning, but because of the way I needed it, I couldn't set bifg waits, and it lagged anyway with waits commands.
Now, I try to avoid parallel events (of course there is some I need).
If you want all your events to do the same thing, you could set up the common tasks in a common event, yes, and then just have each event do a Call Common Event command when they need to. I'd still use the plugin for the timing though. You can do the plugin call (set a timer to turn self switch B on in 5 minutes) within the common event. The beauty of common events is that you don't need to put the same code into individual events, so if you want to change something, you only have one place to change it rather than 50. I'm not sure what your reference to 50 common events was though - if you had 50 map events and you wanted them to all do the same thing, you certainly wouldn't set up 50 different common events all with the same code.
If you are planning to develop a game for mobile that's something more than a "just for fun" project, I highly recommend you handle things like this through JavaScript. You don't even need to learn all of MV's default code structures (even though that would be ideal) - you can save an enormous amount of processing commitment by doing something like having a single Parallel Process (common or map) event that loops through every plot of land and changes a picture or sets a switch if needed, and you can do this by simply using a single "Script..." event block inside the event, and then adding a short (3 to 60 frames depending on your needs) Wait afterwards so that the event isn't running every single frame. You may also want to look into "Duplicate Events"/"Reference Events" plugins - my instinct is that they would significantly aid performance in a setup like this, but I don't know for sure.