Title doesn't really capture my question well... but here goes. For once I don't consider this a "stupid in the sense that I'm missing something obvious or I've overthought the problem" question like a lot of my others. Graphical stuff is one of my biggest weaknesses, so please assume I know nearly nothing on the topic. You won't be far off the mark lol
So, I have a window in a custom scene(plugin-generated, not one I've made. I haven't touched making my own scenes yet). Inside that window I draw a bitmap. After the bitmap is loaded and drawn, I wish to change the colors using its rotateHue function. Here's where it gets odd, and where the title question comes into play. The first time I have the scene up, the bitmap doesn't change. Ever. However, if I close that scene, and reopen it, then every time the window is refreshed, the colors change as the hue rotates. Why does it not happen the first time?
I know why the color keeps changing when the window refreshes, it's due to how rotateHue works and where I'm calling it. What I'm wanting to know is why it only seems to work if the scene is closed and then reopened. I would assume that a scene's behavior should be the same whether it's the first time you've loaded it or the 100th. I assume it's either the scene or the bitmap.
Not sure if the information is relevant, but this issue is in the course of trying to get an MZ plugin working with RETRO. MZ plugins load a bitmap and THEN set the hue, where MV loads a bitmap WITH the hue information, at least with battler images, which is what I'm working with. The use of rotateHue is my first pass on making the two behave similarly. I intend to use a modified and condensed copy of rotateHue for the end result. I'm trying to modify it as far down the prototype chain as I can, just in case another MZ plugin uses setHue for non-battler sprites. I'm currently working with the most basic bitmap and sprite prototypes.
Thanks in advance!
So, I have a window in a custom scene(plugin-generated, not one I've made. I haven't touched making my own scenes yet). Inside that window I draw a bitmap. After the bitmap is loaded and drawn, I wish to change the colors using its rotateHue function. Here's where it gets odd, and where the title question comes into play. The first time I have the scene up, the bitmap doesn't change. Ever. However, if I close that scene, and reopen it, then every time the window is refreshed, the colors change as the hue rotates. Why does it not happen the first time?
I know why the color keeps changing when the window refreshes, it's due to how rotateHue works and where I'm calling it. What I'm wanting to know is why it only seems to work if the scene is closed and then reopened. I would assume that a scene's behavior should be the same whether it's the first time you've loaded it or the 100th. I assume it's either the scene or the bitmap.
Not sure if the information is relevant, but this issue is in the course of trying to get an MZ plugin working with RETRO. MZ plugins load a bitmap and THEN set the hue, where MV loads a bitmap WITH the hue information, at least with battler images, which is what I'm working with. The use of rotateHue is my first pass on making the two behave similarly. I intend to use a modified and condensed copy of rotateHue for the end result. I'm trying to modify it as far down the prototype chain as I can, just in case another MZ plugin uses setHue for non-battler sprites. I'm currently working with the most basic bitmap and sprite prototypes.
Thanks in advance!