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 / My game has a Glitch while loading the second level please help

Author
Message
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 21st Sep 2011 20:12
Hello!
I have tried but seem to keep failing to get my game to load the 2nd level after level one is completed. To complete level one you must be eaten by the mummy and so far the 2nd level fails to work.
If someone could help me out then that would be wonderful.

Setup and run level 1


Setup level 2 and run it


Austin H Wicker
http://captainwicker.webs.com/
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2011 02:44
I'm downloading your files, and tomorow I will give you an answer.

Cheers.

I'm not a grumpy grandpa
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2011 14:29 Edited at: 23rd Sep 2011 21:47
I've noticed that you jump from one main loop to another with goto. If you want to go to second level, you should delete all objects ,images sound in the scene, unless you just move the camera where you want the other level start. You could put the camera movements in a label:, and when you go to second level you gosub to this label: in order no to repeat the whole function. What I have done in your code, is just capture a black screen to paste while we "goto" go to second level, and in second dba, I had to stop the title with a repeat until. You can copy the two scripts to test.


Main Dba.


Second Dba.


You have to go little by little, and when you have a complete level, you can jump to next level.

Cheers.

I'm not a grumpy grandpa
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 23rd Sep 2011 19:46 Edited at: 24th Sep 2011 01:24
@chafari
Alright now the level is fine and all but on level 2 the camera will not follow player 1. Why is this? How can I fix it?

Level 1



Level 2


Any idea how I can fix this?

Captain Wicker
http://captainwicker.webs.com/
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 23rd Sep 2011 20:18 Edited at: 24th Sep 2011 01:25
....

Captain Wicker
http://captainwicker.webs.com/
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Sep 2011 21:46
You have to make a label with the camera movements.




And the same in second level




I'm not a grumpy grandpa
TuPP3
19
Years of Service
User Offline
Joined: 26th Jan 2007
Location: [+--]FINLAND
Posted: 23rd Sep 2011 21:47 Edited at: 23rd Sep 2011 21:48
You got [ code] and [ /code] wrong way around.
First [ code] then [ /code].

There is "Edit Post" link in bottom left corner of your post(Also "Back to top"). Click the Edit Post link so you can fix it
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 24th Sep 2011 01:26
Wow thanks for the camera fix

Captain Wicker
http://captainwicker.webs.com/

Login to post a reply

Server time is: 2026-07-10 23:33:08
Your offset time is: 2026-07-10 23:33:08