Am I doing something wrong here - Replace RGB bug.
Still...
Due to a sheer amount of colour swapping my game requires, i've used this method to "store" the different colours.
There is one object that stores all the colours of the player object:
http://www.cosmic-hero.com/Image8.gif
And one that stores the current pallete:
http://www.cosmic-hero.com/Image10.gif
The event to change colours is this:
Code:
When Value A of Storage is different to B:
Start fastloop "colour"
Code:
On loop colour
Replace RPG at Storage(loopindex,valuea) with List(loopindex,valuea)
It does this for the two player objects and the storage object.
Unfortunately, the momement it does this - theres a pause. It's siginificant. Too significant.
Due to previous posts, I was under the impression that the hardware drain was fixed. Either my coding is wrong or it hasn't been fixed. Which one is it?
MFA File:
http://www.cosmic-hero.com/Problem.mfa
Suggestions I know will come up:
a) Reducing the screensize makes no difference.
b) Oh, and I'm on a high end computer.
Re: Am I doing something wrong here - Replace RGB bug.
If you replace several colors in a fast loop, then it will be slow because for each color change MMF2 creates a copy of all the images of the object and replaces the color in all these images.
To optimize it we would need to add an action to allow you to change several colors at the same time.
Re: Am I doing something wrong here - Replace RGB bug.
Future version perhapes? I can't be the only person in need of such a feature.
In the meantime, any workarounds?
Colour changing is kinda cruical to this game :/
Re: Am I doing something wrong here - Replace RGB
You could mess around with the Colorize object from LIJI's bonus pack - haven't really used it myself but my guess would be that it colorizes things.