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 / Making an RTS - Need help.

Author
Message
Lajitt
15
Years of Service
User Offline
Joined: 22nd Jan 2011
Location:
Posted: 30th Jan 2011 03:46
So far in my RTS I have

-A ground
-The ability to move the camera around with the mouse

Now I want to add a few basic units. Would these just be like buttons, you click them and click somewhere else to make them move? If so, how would I do that?

Sorry, don't mean to be pushy or anything.

Thanks in advance.
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 30th Jan 2011 15:08
Best thing to do is to use the PICK SCREEN command to find which unit has been clicked (you can use MOUSEX() and MOUSEY() to find where the mouse has clicked on the screen)

Once the unit has been clicked, you're on your own AI pathfinding coding can be tricky, but you'll learn more about programming if you try to work it out yourself!

Malevolence: The Sword of Ahkranox
The infinite RPG
http://www.msoa-game.com

Login to post a reply

Server time is: 2026-07-18 02:08:50
Your offset time is: 2026-07-18 02:08:50