Posted: 15th Aug 2011 16:54
I just added an agc file to my project to load my media from a separate source file and it seems the label cannot be found.

I thought gosub might be a "core" command but it's not in that section of the help files.

Is there a simple way to add more source files to a project or am I coding this wrong:
+ Code Snippet
rem In main file
gosub loadMedia:

rem In another agc file
loadMedia:
    rem My loading code here...
return
Posted: 15th Aug 2011 17:01
Have you included your file using the #include command? Some examples of this are in the General - IncludeFiles project along with Games - SpaceShooter and Games - SantasBadElf.
Posted: 15th Aug 2011 17:03
No I haven't. I guess I'm used to DBP doing all that for me