|
Post by mindrage on May 21, 2014 8:01:23 GMT -8
Well, I used the gd2asset python script to compile my PNG Images into a more suitable format. Individually, the images loaded perfectly, but when i try to put them in multiple handles with this code:
GD.BitmapHandle(1);
GD.safeload("logowing.gd2");
GD.BitmapHandle(2);
GD.safeload("logo.gd2"); It will load and overrrite the Handle 0 all the time, which i somehow suspect that the Handle is Set in the compiled file. Yet doing the commandline style doesnt really work out what i've seen. So i wondered how i should do to compile a batch of assets, if you could explain a bit in detail to add multiple files to it?
|
|
|
Post by jamesbowman on May 22, 2014 5:21:17 GMT -8
Yes, the "gd2" file in each case is doing a BitmapHandle(0), which is why all the pictures end up using handle 0.
The asset converter can convert multiple assets, for example:
gd2asset -f picture0.png picture1.png picture2.png loads picture0 into handle 0, picture1 into handle 1, etc.
Would this work for your setup?
|
|
|
Post by mindrage on May 23, 2014 1:48:48 GMT -8
it should be good enough :3, Would i also be able to implement custom fonts in the mixture when adding stuff to it?
|
|