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.

AppGameKit Classic Chat / T2 Android/IOS

Author
Message
keitaroguy
13
Years of Service
User Offline
Joined: 18th Nov 2011
Location:
Posted: 20th Nov 2011 07:47
Where Do I put my assets? Like My graphics and my sounds. And For android do I have to create xml files to do it? Thank you all
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 20th Nov 2011 11:32
For Android create a directory called ASSETS in android_template (or whatever you named your agk template).

Copy your assets in the ASSETS file, keeping the directory structure you used in your code.

In Eclipse press f5 to refresh. sometimes on launch Eclipse automatically senses that you included a new directory and offers to update your project.
keitaroguy
13
Years of Service
User Offline
Joined: 18th Nov 2011
Location:
Posted: 28th Nov 2011 01:40
OK I made the directories and then I put my assets in the then I have
agk::loadImage(99,"ASSETS\\test.png"); It is not finding the sprite? Am i doing alright?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 28th Nov 2011 08:06 Edited at: 28th Nov 2011 08:06
For Android just do

agk::loadImage(99,"test.png");
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 28th Nov 2011 18:34
Also if you are going to use sub directories always use forward slashes as all platforms support them whereas only Windows supports back slashes
keitaroguy
13
Years of Service
User Offline
Joined: 18th Nov 2011
Location:
Posted: 28th Nov 2011 23:44
I only need to do agk::loadImage(99,"test.png"); even if I put it in Assets directory?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 29th Nov 2011 09:51
Yes exactly

Login to post a reply

Server time is: 2024-11-22 15:24:29
Your offset time is: 2024-11-22 15:24:29