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.

Dark GDK / t.ed V6.7

Author
Message
Tylerman35
15
Years of Service
User Offline
Joined: 23rd Jul 2009
Location:
Posted: 7th Sep 2009 05:38
How can i import my map to my game. It will be in X format, but how can i make it so i can hover over the montains and stuff.
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 7th Sep 2009 05:53
Quote: "How can i import my map to my game. It will be in X format"


If you export you level from T.Ed as a whole .X format file, then you would load it and treat it the same as any other .X format object in DarkGDK, with dbLoadObject()

Quote: "but how can i make it so i can hover over the montains and stuff. "


Im not sure what you mean by that, do you mean to move the camera over the terrain with it following the terrain contours or do you mean like a helicopter or something that you can fly around ?

Either way, you are going to have to learn about camera control and positioning to achieve that. Some of the commands to look at include :

dbPositionCamera()
dbRotateCamera()
dbPointCamera()
dbCameraPositionX()
dbCameraPositionY()
dbCameraPositionZ()
dbCameraAngleX()
dbCameraAngleY()
dbCameraAngleZ()

Your best bet is the play with the commands and see what they do, how they affect your program and learn how to use them, there are numerous code snippets and tutorials in these forums if u have a look.

If it ain't broke.... DONT FIX IT !!!
Tylerman35
15
Years of Service
User Offline
Joined: 23rd Jul 2009
Location:
Posted: 7th Sep 2009 05:56
i mean move the camera of the terrain.
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 7th Sep 2009 08:53
I believe i meant just walking above terrain or something?

I would use sprakys collision for that.

Search for DBP Collision and there is then also a darkgdk version, it is a awesome plugin, to achive anything that has to do with collision.


Login to post a reply

Server time is: 2024-10-01 12:22:28
Your offset time is: 2024-10-01 12:22:28