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 / loading code with seperate .agc files

Author
Message
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 9th Dec 2012 12:27
Could someone tell me the best way to add another .agc file

having a separate file that would say; load up the images and convert them to sprites and then position them while leaving the main.agc for separate code to manipulate them?


I 'm pretty sure there is a way to do this, I just can't see any reference in the help files...
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 9th Dec 2012 12:32
I think the best way to do this is to press "file > new file" You will get a question saying "do you want to add the file to the active project. Say yes and save the file. Then at the top of your main.agc file, you should write #include <your filename>.agc. And to run code in the subfile just use subroutines or functions.

I hope that does what you want it to
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 9th Dec 2012 12:35
yes!
ThankYou

Login to post a reply

Server time is: 2024-11-24 03:51:02
Your offset time is: 2024-11-24 03:51:02