Excellent post, do you need any assistance with this project?I wrote an article about it once
http://himeworks.com/2014/11/designing-a-script-for-composite-character-sprites/
It describes things like how you would set it up in your database, some of the details, and so on.
There's one thing that I haven't completely thought through yet, and it's related to optimization.Excellent post, do you need any assistance with this project?
well.. that was what i meant, i might have my termology mixed up.I'm thinking of caching textures and then having sprites pick up the textures.
Would there be some advantage to caching entire sprites?
I'm just worried about what happens if you change outfits too many times and you run into memory issues lolwell.. that was what i meant, i might have my termology mixed up.
[doublepost=1446068142,1446068105][/doublepost];)
I did notice while I was looking at the sprite classes that there were no dispose/destroy methods, so I assumed it's not an issue anymore unlike in previous versions where not disposing it would 100% result in memory leaks.The JavaScript engine handles garbage collection so that is no big problem. But you should always delete big objects if you do not need them.
Actually this other problem might be of interest for you then: http://www.rpgmakermv.co/threads/is-caching-a-memory-leak.610/I might not know a lot about drawing, but fixing memory leaks in enterprise scale applications, that is my main job
I'm thinking of it as a set of layers, similar to what you have thoughthow we construct the object, i am not sure..
Maybe something like a stacked template where you divide between changeable and unchangeable information
Hopefully the bitmap copying process will be fast!Changing gear should not impact anything, it is how the creation of the current object that will be the most costly process, i am guessing now that working with graphics rendered to memory is just as easy as working with a actual sprite file, the rest should give no impact on performance.
This is true, but it will not work as intended. The script you linked is a good starting point, but what if you want to only change the color of the cloak?The easiest way to do this is simply just to make a sprite for each armour - not including helmets, accessories, etc. Just the clothes found in the gen, but with additional clothes.
Sure thing, i will continue this!Btw, I'm not sure when I will get to this so anyone can feel free to provide their own solutions
First I love your plugins! Second is there a way to contact you? I wanna have a conversation with you and third I was also wondering if there was a plugin for sprite images that basically place the image on top of the current gear item for example; your base sprite is the character you made without clothes and then for armor when you put a piece of armor on a chest and leg piece of armor will be put on top of the base character in underwear so the base sprite looks like it has the armor on and things like shoulder pieces are pasted onto of the chest piece but only cover the area around the shoulders and the belt is covering the pants but only at the top of the leg item. Things can be placed in order depending on the gear they have for example if you put a cape on it will go over the back of the chest piece and under the shoulder pads or what ever order you chose to make the priority armor on it will be on top and less priority will be on bottom so you do not need a combination of each picture but instead a base sprite that changes with the gear you have and if you can make it to where when you can make a slot for weapons to go over all the gear as weapons are normally on all the armor when sheathed like IRL and most RPG games like WoW and such the item sprites for armor and weapons will be much easier and versatile so there can be combinations made for even more things than just gear.I was going to post the link to the Graphic Changer plugin as well lol
But I'm assuming if they change armor and hats, and both were separate things, then you would need a new graphic for that. And for every combination of equips, you will need new graphics for those. Now how fast do factorials grow?
I have a plugin in mind called "composite characters" which should be much more powerful.
It is basically a character generator, in-game, that runs automatically depending on what you're wearing, what your state is, your class, and so on.
If you think about how the character generator works, all of the different pieces are set up appropriately based on a given template. You could then mix and match pieces with the correct layering to get your final sprite.
I wrote an article about it once
http://himeworks.com/2014/11/designing-a-script-for-composite-character-sprites/
It describes things like how you would set it up in your database, some of the details, and so on.