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 DBPro Corner / New Source File...?

Author
Message
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 8th Jun 2010 04:00
How do i access a new source file i created from one code to another?
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 8th Jun 2010 17:01
You can use #include.
And i think there is some options in dbpro for this but personaly i never used that.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 9th Jun 2010 04:45 Edited at: 9th Jun 2010 04:46
And isnt there a way of like, going rather than including a code, like for example:

I have a page with a code for lvl 1 and i want to go to the page with the code for lvl 2
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 9th Jun 2010 07:05
Most games are written in such way that they load their levels from files not from the main executable.They did not write manually all the stuff.

If you post some code here about your levels someone can help you on this.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 9th Jun 2010 16:58
Maybe look at using SAVE ARRAY and LOAD ARRAY.
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 10th Jun 2010 03:31
Well, its not a lvl rly... its like the first scenario, and i want that when u cross the first door u go to the second scenario.

This is my code:




And i want that in the part that says:



instead of "End" i want it to go to the second page of my code where the second scenario will be with all the things it will have.


Is there any for going to the second page of my code?

Login to post a reply

Server time is: 2024-09-28 18:27:05
Your offset time is: 2024-09-28 18:27:05