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 / Strange Problem - BREAK causes different results

Author
Message
TheSquid
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location: Ohio
Posted: 7th Apr 2004 17:41
Strap yourselves in and hang on time, this one is a showstopper...

I am using a text file read into a 2D array to load the landscape objects in my game. To create a forest type scenery, I am using a tree object made of two plains and textured and set with backface culling and transparency. I then add limbs to the initial object, as this actually is faster than loading several tree objects (I can't make static objects, as I lose the backface culling and transparency). Everying works fine to this point. Next step is to put a static collision box around the tree limb. This only works on the first limb.

Now the really confusing part. If I insert a break into my code before the collision box is created and press the ESC key each time the break is hit, my code works perfectly.

Any ideas how to get around this one? I'll post code tonight for all of the non-believers, but I'll have to forward .txt files to you as well.

Login to post a reply

Server time is: 2025-05-23 06:30:55
Your offset time is: 2025-05-23 06:30:55