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 / How to make box's go to a specific place

Author
Message
FishCube
12
Years of Service
User Offline
Joined: 31st Jul 2013
Location:
Posted: 16th Feb 2014 00:08 Edited at: 16th Feb 2014 02:03
So i am working on a game that is block based and i finnally got the camera stuff down only to find that no matter what i cant actually determine where the box actaully goes. Is there a command for this or something becuase it doesnt want to go to a certain spot. Also, if anyone could help me with making multiple blocks that would be nice. I know its probably a for loop but i dont know.

If you want to see the game in action just go here:
The Building Game

here is the source code:



Thanks for any help in advance and if i could make anything better please let me knowhttps://www.mediafire.com/?htl9cg34jaxq0cphttp://www.mediafire.com/download/htl9cg34jaxq0cp/Building_Game.zip

-FishCube-
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 16th Feb 2014 20:01 Edited at: 16th Feb 2014 20:01
You can use POSITION OBJECT n,x,y,z to put an object exactly where you want.

Also, to see where an object is you can use:
PRINT OBJECT POSITION X(n)
PRINT OBJECT POSITION Y(n)
PRINT OBJECT POSITION Z(n)


tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 24th Feb 2014 02:35
You aren't that clear in your question. Are you saying you want an object to move towards a position? If that's the case then point it at the position you want it go go and then move it so many increments each loop.

Cwatson

Login to post a reply

Server time is: 2026-07-06 07:51:06
Your offset time is: 2026-07-06 07:51:06