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 Discussion / need help with changing levels

Author
Message
unstable
18
Years of Service
User Offline
Joined: 14th Dec 2006
Location: i am on a random planet called \"ea
Posted: 16th Dec 2006 05:15
Ok i have a code that i made, it is supposed to make it so that when you get to certain cords on the map it loads the next level here is the code. i have also placed it in the main loop.

now i know some of you are saying "well your problem is that you don't have a map to load in the beginning" not true i have this defined here at the beginning of the game.
here is that code. it is not in the main loop

also i attached my source code and media
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 16th Dec 2006 18:05 Edited at: 16th Dec 2006 18:06
1. I don't see the source code and media anywhere...

2. The problem is probably because it is very herd to reach an exact coordinate when playing a game. If you're one unit off it won't work. Try making it over a wider range like this, where X# and Z# are the player's X/Z positions and XPoint# and ZPoint# are the coordinates that let you beat the level. Range# is how close you need to get.



Or just making an invisible box that ends the level when you collide with it.

unstable
18
Years of Service
User Offline
Joined: 14th Dec 2006
Location: i am on a random planet called \"ea
Posted: 17th Dec 2006 23:05
ok did that and it kind of works, but when ever i run into the box/range the game just freezes. any help

Login to post a reply

Server time is: 2025-05-26 03:01:16
Your offset time is: 2025-05-26 03:01:16