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 / RTS engine

Author
Message
pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 18th Feb 2006 12:25
Anyone have an RTS base engine with unit selection and moving?
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Feb 2006 12:43
I'm sure some of us do... but most of us don't like the "Gimmie da codez!" messages.


pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 18th Feb 2006 12:49
I searched in all sections of the forum and I haven't found this code.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 18th Feb 2006 12:55
So write it then


pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 22nd Feb 2006 20:38
I am trying to write my own game engine and I wrote this code but it doesn't work:



The cube object is in the down left corner. To select it you have to drag a selection box with the mouse and to move it to a certain position you have to click with the right button of the mouse in the wanted position. Here is the problem: the cube doesn't use the mouse click position and it begins to move without any rule.

I wrote this code using the Phaelax tutorial and another tutorial found on the web about making an RTS game with DarkBasic.

Can you say me something to resolve this big problem?

Thank you very much, any suggestions are accepted.
Lame Brain
19
Years of Service
User Offline
Joined: 28th Apr 2005
Location: Portland, OR
Posted: 22nd Feb 2006 20:54
Check this out. VERY helpful for what you are trying to do and may other things.

http://www.kentaree-studios.com/tutorials/vectors/

Cheers!

Another hair-brained idear from... LAME BRAIN!
pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 22nd Feb 2006 21:05
Did you found the error or the errors in my code. Can you correct me?
pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 22nd Feb 2006 21:05
Sorry, did you find...
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 22nd Feb 2006 21:42
Are you trying to move by clicking the mouse?

FunkyStickmen: Battle of the Races (1%)
pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 23rd Feb 2006 14:30
Yes
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 23rd Feb 2006 15:31
If you have DBPro, look into the Pick Object command. It's very nice for doing this sort of thing. If you're using DBC, you'll have to code it by hand. I know there are some tutorials floating around somewhere -- probably look in the codebase.

Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 23rd Feb 2006 20:04
I am trying to make an RTS. This is what I did for my controls.



Insanity is just a state of mind
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Feb 2006 04:01
Quote: " searched in all sections of the forum and I haven't found this code"

Haven't looked too hard then. Check the sticky threads in the "code-snippets" board. Here's the latest download of the tutorial package that goes with the thread.
http://cca-software.com/downloads/rts_11.zip


pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 26th Feb 2006 19:38
I've already looked that tutorial but the code doesn't work.

Login to post a reply

Server time is: 2024-11-27 03:43:41
Your offset time is: 2024-11-27 03:43:41