Hello,
I am writing a script that draws a gradient bar at the top of the sprite on the map - pretty much what `Window_Base.prototype.drawGauge` does only with the appropriate tweaks for Sprite_Character..
I call the function that draws the bar on `Sprite_Character.prototype.update`.
The problem I'm experiencing is that the bar only shows when the character is facing down. Whenever the direction is changed, the bar is gone.
I tried searching the code of `Sprite_Character` but couldn't find the reason this happens.
Also, when debugging I couldn't see the values change in any way that should affect the drawing (I use anchor.x and anchor.y of the Sprite_Character and the values don't change when the direction is different).
Does anyone have an idea what causes this and how to fix it?
Thanks in advance.
I am writing a script that draws a gradient bar at the top of the sprite on the map - pretty much what `Window_Base.prototype.drawGauge` does only with the appropriate tweaks for Sprite_Character..
I call the function that draws the bar on `Sprite_Character.prototype.update`.
The problem I'm experiencing is that the bar only shows when the character is facing down. Whenever the direction is changed, the bar is gone.
I tried searching the code of `Sprite_Character` but couldn't find the reason this happens.
Also, when debugging I couldn't see the values change in any way that should affect the drawing (I use anchor.x and anchor.y of the Sprite_Character and the values don't change when the direction is different).
Does anyone have an idea what causes this and how to fix it?
Thanks in advance.