- Joined
- May 25, 2022
- Messages
- 3
- Reaction score
- 3
- First Language
- Tagalog
- Primarily Uses
- RMMZ
I have the following PNG (button_arrow):
Upon start of the game, it gets loaded into $dataGui._bitmaps.button_arrow.main[0]-
As a Bitmap, it has canvas and image properties-
Per this StackOverflow post, it seems to be possible to flip an image horizontally using JavaScript-
I am trying to apply their logic to the following function, that processes button_arrow.png before it is loaded into the $datGui._bitmaps object-
The function attempts to create four new bitmaps from button_arrow.png-
But I am unsuccessful thus far.
Doth anybody have any insights, suggestions, or corrections for how I might achieve my goal?
TIA
UPDATE (2022.05.25 23:52)
Got it working after coming across this piece of advice from another thread and adapting it-
Thanks
Upon start of the game, it gets loaded into $dataGui._bitmaps.button_arrow.main[0]-
As a Bitmap, it has canvas and image properties-
Per this StackOverflow post, it seems to be possible to flip an image horizontally using JavaScript-
I am trying to apply their logic to the following function, that processes button_arrow.png before it is loaded into the $datGui._bitmaps object-
The function attempts to create four new bitmaps from button_arrow.png-
But I am unsuccessful thus far.
Doth anybody have any insights, suggestions, or corrections for how I might achieve my goal?
TIA
UPDATE (2022.05.25 23:52)
Got it working after coming across this piece of advice from another thread and adapting it-
Thanks
Last edited: