kako05

Veteran
Veteran
Joined
Sep 11, 2017
Messages
194
Reaction score
31
First Language
Australian
Primarily Uses
RMMV
Just a question. Does code like this

Common event
If variable 1
show picture 1

If variable 2
show picture 2

If variable 3
show picture 3

which constantly check for variable and change clothes to that number breaks performance by constantly loading images or something? Just to make sure..thanks!

This code changes clothes then for example, event sets variable to number 2, common event automatically changes person clothes to show picture 2.
 

Grandro

Villager
Member
Joined
Aug 4, 2017
Messages
9
Reaction score
2
First Language
German
Primarily Uses
RMMV
No, this shouldn't lagg if you don't have many parallel process events running at the same time.
But I would always add a "wait: 1" at the end of a parallel process event. It saved me from so many performance issues.

Also you could consider preloading the images you want to display before, especially if they are larger beings.
There are several plugins, just use your friend google.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,718
Reaction score
15,843
First Language
English
Primarily Uses
RMMV
How often is your character going to be able to change clothes? By what means - menu, or event?

If you KNOW when they can change clothes, just do a Common Event command at that time, rather than having it as a parallel process. If they have to interact with a wardrobe event, for instance, just call the common event at the end of that event. If it's from the menu (equip screen), write a little tiny plugin (probably half a dozen lines) to turn on a switch whenever that menu is opened, and set the common event as parallel process conditioned by that switch, and turn the switch off at the end.

If you HAVE to have it as a parallel event (and you likely don't), ask yourself how often are they going to be doing it? If it's infrequent, make the wait time longer (you don't need to check if they've changed clothes 60 times a second). I suspect any common event whose conditions are met will be run the moment the map is loaded anyway, so you could probably make it wait 60 frames or longer and it would still run as soon as you came back from the menu (just make sure the wait command is at the end of the common event, and not the beginning).


What is the picture that's being shown? Show Picture doesn't affect the walking sprite on the map. So do you have the actor's picture in a corner of the map or something?
 

Latest Threads

Latest Posts

Latest Profile Posts

Our latest Make a Game in MZ Stream is here! Today, we're going to create a complex switch puzzle, where flipping one switch also toggles the switches adjacent to it. Join now to see how it's done!

Here's a preview to an upcoming free track. Kind of a hybrid, Middle Eastern, orchestral thingy. Should be released pretty soon!

Time: duration regarded as belonging to the present life as distinct from the life to come or from eternity; finite duration.


1653085842103.png

Me against Time now. No second chances. No distractions. All or nothing. Whoever wins is the best fighter.
Come join us for 2 more hours of the fabulous Kindred Novel by BirdBunch! We had a lot of fun yesterday and look forward to exploring more of this compelling game :LZSjoy:
steamdemo_scr.png

I am happy to announce that a date for the release of the demo on Steam has been decided: On may 26th at 18:00 GMT, the demo will be available for download! One week later, on april 21st, the demo will also be available on other platforms such as Itch.io and other supported platforms.

Forum statistics

Threads
121,979
Messages
1,145,630
Members
160,254
Latest member
Ucojugetsu
Top