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.

Newcomers DBPro Corner / Strategy Game Movement

Author
Message
DBasic Khan
20
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: Alpha Quadrent, Sector 1,1 SOL SYS
Posted: 11th Dec 2003 20:29
Hey Guys,
Ive been poking around with DarkBASIC and im trying to decide on what tkind of game i will make first . I have made abunch of simple things. Right now im experimenting with makeing an RTS. But im not sure on how to move units. I have been able to make it so i can select them but cant move them. Is there some way to have an object go to the 3d cordinates that the mouse is over????
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Dec 2003 22:56
The code to do this is already out there. Several methods for getting mouse coordinate to 3d world coordinates are available. Once you've managed to get the point at which the mouse is clicked at, point your characters at that position then move them.

Login to post a reply

Server time is: 2024-11-25 20:21:31
Your offset time is: 2024-11-25 20:21:31