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.

Code Snippets / RTS unit selection basics and camera movement

Author
Message
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 2nd Jan 2003 21:05
Here's some basic code to show how to handle unit selecting in an rts style game. It supports clicking a single unit, dragging a box to select multiple units and rts camera movement.

DBv1.x and DBPro compatible

Skabb
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location:
Posted: 2nd Jan 2003 21:36
Your code is truly horrible.
It doesn’t even run. Look at your for…next loops – they don’t even match.

No, he really isn't THAT good!
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 2nd Jan 2003 22:23
Ok this forum is still very buggy, it takes bits of your code out. Download the working file below. And what do you mean my for next loops don't match?

http://www.realgametools.net/forums/attachments/RTS_Basics.dba
xtom
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Ireland
Posted: 2nd Jan 2003 22:41
Ah yeah I see the for next loop your on about. That was the forum again, it's fine in the .dba file. sheesh

Login to post a reply

Server time is: 2024-11-24 07:23:48
Your offset time is: 2024-11-24 07:23:48