Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Load subimage

Author
Message
Fonzzz
User Offline
Joined: 28th Sep 2019
Location:
Posted: 28th Sep 2019 16:36
Hello,

I'am new to coding en i'am searching for hours to find it.
Can someone explain me with a code example, how to load a subimage? Because i don't understand it.

Thank you verry much.

Kenny (from Belgium)

c0d3r9
2
Years of Service
User Offline
Joined: 2nd Oct 2017
Location:
Posted: 28th Sep 2019 20:29
https://www.appgamekit.com/documentation/Reference/Image/LoadSubImage.htm

An example...



atlas01 subimages.txt
Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 8GB Ram - 240GB SSD
Fonzzz
User Offline
Joined: 28th Sep 2019
Location:
Posted: 28th Sep 2019 22:01
Thank you c0d3r9.
I got the first part, but i don't understand how you get the subimages.txt file?
Is that a file you made it yourself? Of where can i find it?
c0d3r9
2
Years of Service
User Offline
Joined: 2nd Oct 2017
Location:
Posted: 29th Sep 2019 01:28 Edited at: 29th Sep 2019 01:33
Yes thats a file made by you.
And donĀ“t forget the name of your atlas file must be the same like your atlas image file.
I.e. Loadimage(998, "/media/anysubimage.png")
Your txt have the name "anysubimage subimages.txt".
Laptop: Win10@64bit - i3 2x2Ghz - 8GB Ram - 1TB HDD
Desktop: Win10@64bit - AMD Ryzen 5 2400G - MSI B450 Tomahawk - 8GB Ram - 240GB SSD
Fonzzz
User Offline
Joined: 28th Sep 2019
Location:
Posted: 30th Sep 2019 07:29
Ok. Thank you.
Bengismo
1
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 11th Oct 2019 15:12
There is an utility that comes with AppGameKit called ImageJoiner which allows you to take a number of images in a folder and it will put them all onto one image (texture) for you, and it will generate your subimages.txt file for you. It can be quite useful.

If you have created one image with all your sub images on yourself in an art package then you have to make the subimages text file yourself.


Login to post a reply

Server time is: 2019-11-17 20:15:26
Your offset time is: 2019-11-17 20:15:26