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 / Help with my terrain editor code

Author
Message
WRIOR
15
Years of Service
User Offline
Joined: 11th Oct 2010
Location: Ireland
Posted: 11th Oct 2010 18:33 Edited at: 11th Oct 2010 20:18
SOLVED MODS CAN CLOSE IF THEY WANT
Hi im new to dark basic and for my first projecti decided to try make a terrain edtior. But i've Run into two problems already:
1) The First problem is the plane im drawing isnt draw as red even do i colored it red.

2)The second is The way im drawing the plane at the moment isn't the way i want it.Is ther a way to draw it by specifying the cordinates of each vertice.

Heres my code im surprised i got as far as i did without running into a problem:

Fixed BOTH Problems but now i have another 1 When i press the space key its supposed to changed the edit mode can't find the problem can any1 help?

Heres the Updated Code


THANX IN ADVANCE

SOLVED this is my problem

even if mode was equal to 0 after its set to 1 its set to 0 again
farmkid4
16
Years of Service
User Offline
Joined: 23rd Sep 2009
Location: on my pc :)
Posted: 12th Oct 2010 04:24
Would you be ok with me modifying this and using it?

SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 12th Oct 2010 06:24
Nice job I'm working on a terrain editor 2, mines 500+ lines so far, you might consider breaking your code into functions then u could make a dba library
WRIOR
15
Years of Service
User Offline
Joined: 11th Oct 2010
Location: Ireland
Posted: 12th Oct 2010 17:23
Sure you can use it if you want. I've got it placing different textures on different tiles now as well.

Login to post a reply

Server time is: 2026-07-22 22:07:13
Your offset time is: 2026-07-22 22:07:13