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 / Positioning issue - Kamac problem's, series 2

Author
Message
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 23rd Jan 2011 20:50
Lawl. I just got another problem while making my lovely animated bow shooting. When i Load Object "arrow.x",number Then all would be fine, just not that my arrows spawns at coords 0,0,0, code looks like that:


But my issue is that camera is being positioned near my arrow, + it's pointing on it... So i can't make an arrow ON my camera, the camera goes ON my arrow x_x

In progress of making Archery Simulator... Or maybe not simulator x]?

@There'll be a sig @
Virtual Nomad
Moderator
20
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 23rd Jan 2011 22:22 Edited at: 23rd Jan 2011 22:26
by default, the camera is set to "automatic" (it's also positioned at 0.0, 0.0, 0.0, by default). further, when the camera is in automatic, it will point itself at the last object that was loaded or created.

so... take control of the camera using:



then, position it wherever you want it:



and, point it where you want it to look:



finally, do yourself a favor and re-read through all the various commands. seeing commands like autocam off (and on) should trigger questions for you. ie, "hmm, what's this "autocam" about?". being even slightly familiar with the various commands (ie, just knowing they exist) will help you figure out some of the basic issues like the one here. playing with them a little and you'll discover more potential within the language (especially when it comes to how you might combine them to pull off some nifty functionality or features for you games).

good luck!

Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 24th Jan 2011 00:07
I know much commands, finally i just made like 400 ready objects and placed them at x of 4000 y of 40000 and z of 4000, and when needed positioned one by one in needed positions .

But that'll be useful for further

Quote: "good luck! "


Thanks

In progress of making Archery Simulator... Or maybe not simulator x]?

@There'll be a sig @

Login to post a reply

Server time is: 2026-07-16 12:20:03
Your offset time is: 2026-07-16 12:20:03