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.

DarkBASIC Professional Discussion / how to load my stage2?

Author
Message
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 1st Oct 2011 06:08 Edited at: 1st Oct 2011 06:09
Hi guys. Im finish creating my 2D side scrolling game design for Stage 1 and Stage 2. They have different project folder. When I run the Stage 1, in the end of the game i want to load the stage 2. How can I do that? Need some help pls.

i have a problem in darkbasic codes. pls help me
Da_Rhyno
15
Years of Service
User Offline
Joined: 25th May 2011
Location:
Posted: 1st Oct 2011 06:22
Do you mean you're making two separate executables?
Mr Bigglesworth
18
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 1st Oct 2011 08:22
When stage one ends, you run code to reset the world and load, position, and ready all the sprites and resources for stage 2.

We need more information or code to help you better.
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 1st Oct 2011 12:33
Mr. Da_Rhyno... Yeah. I have two seperate executables. You have any idea how to load it?

Mr. Bigglesworth. What I did is just I copy the codes of stage 1. Then in the end of the code I paste the codes for Stage 2. I make a variable for stage 2 so that in the end of the game in stage 1 i will use the code GOTO stage 2. But it is not working.

i have a problem in darkbasic codes. pls help me
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 1st Oct 2011 16:32
Quote: "Yeah. I have two seperate executables"


@HelloE
That sounds like you wanna end one exe and from there execute file of a second exe file.

You had better do it as Mr.Bigglesworth suggested, just reseting all objects and reload them again, meanwhile you could paste an image on screen " w a i t p l e a s e " or whatever you like

Cheers.

I'm not a grumpy grandpa
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 1st Oct 2011 17:59
Hmmmm.. i think it is impossible to do it with sperate executables. Ok . . . So. The idea of Mr.Bigglesworth is close to my idea? That im gonna make the stage 2 codes as variable and call it in the end of my satge 1. Am i correct? If im not correct please give me some example codes. It really appreciates me.

i have a problem in darkbasic codes. pls help me
Blobby 101
20
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 1st Oct 2011 20:14
If you really want to use seperate EXEs (I don't know why you'd want to though) you can use the Execute File command to run your other EXE. I'd advise merging them into 1 project though, it's much cleaner for your game to be contained in a single EXE.

Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 3rd Oct 2011 07:57
What you really need is Game States. If you download our IDE there is a Game State Template that you can use to set it up. File-> New Project pick Game State Template.
The Template is commented, but if you have any questions don’t be afraid to ask.

Click on Banner to link to Download page.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 3rd Oct 2011 13:27
Wow. Thanks for the advice guys. GodBless

i have a problem in darkbasic codes. pls help me

Login to post a reply

Server time is: 2026-07-11 14:37:43
Your offset time is: 2026-07-11 14:37:43