How to declare an image regardless its format? (PNG to WEBP)
Posted: Thu Aug 15, 2019 12:42 pm
Before realising an update of my game I have to convert the .png image to .webp to save space. The problem is that when I work on it I need those image to be .png so I can see them as much as I need and while doing animations or showing a thumbnail of those image I will declare them like this
An animation:
A thumbnail of an image inside a gallery:
But for the release I need to change those .png for .webp, and I know that I can always use Ctrl+F and replace them but I'm always afraid of changing something that I shouldn't and break the game. In the four updates my game had so far I forgot to change at least one of those .png to .webp in two updates.
My question is if it's possible to declare an image regardless of its file format.
Thanks for reading.
An animation:
Code: Select all
image el_001:
"images/elly/elly_001.png"
pause 0.1
"images/elly/elly_002.png"
pause 0.1
"images/elly/elly_003.png"
pause 0.1
"images/elly/elly_002.png"
pause 0.1
repeatCode: Select all
image galb01_01:
im.FactorScale("images/intro/b01_01.png",0.14)My question is if it's possible to declare an image regardless of its file format.
Thanks for reading.