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 / Floor generation system

Author
Message
Avo
16
Years of Service
User Offline
Joined: 12th Jun 2010
Location:
Posted: 30th Jul 2010 09:19
Im having trouble with a floor generation system but its currently really buggy. Right now it causes the screen to flicker when it draws the plane before instantly deleting it(I think). My end goal is to have it delete the cube and create a textured plane underneath to cover up the gap in the ground.

The bug is somwhere in here...


Heres the rest of the my code but you probbably wont need it.
RedFlames
18
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 30th Jul 2010 23:33
Found your problem... just put "Autocam Off" at the beginning

(Autocam repositions the camera when you create/load an object, so you automatically see the new object. That makes the camera flicker. rather annoying thing... )
Avo
16
Years of Service
User Offline
Joined: 12th Jun 2010
Location:
Posted: 31st Jul 2010 05:48
Thanks, that fixed a bug that has been irritating me forever!


There's still 1 more bug though it isnt creating the floor on the ground.The idea is to create a plane (the floor) on the ground with the old cubes object number so it keeps the same organization pattern throughout the box.
Avo
16
Years of Service
User Offline
Joined: 12th Jun 2010
Location:
Posted: 1st Aug 2010 08:27
Got it! This bug has been infuriating me for a few days but i got it!
I was using the floors Y position instead of its Z position! Thanks again Red flames!

Login to post a reply

Server time is: 2026-07-25 08:29:45
Your offset time is: 2026-07-25 08:29:45