Moving Objects by mouse in RTS Way ?

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

Post Reply
Posts: 3
Joined: Wed Nov 27, 2002 2:00 pm

Moving Objects by mouse in RTS Way ?

Post by max » Fri Jan 17, 2003 5:34 pm

Hi, i'm reading Gamekit book in front of my PC those days ...
... not very far away from the beginning

I'd like to make a game in which player would select object by mouse (i know how to do) and then give the selected object a destination point elsewhere on the scene. Think of Real Time Stratgic games to see what i mean.

Since only Actors (with mouse sensor) can recieve mouse-click event i don't see a good way to implement destination choosing.

- Should every possibe destinations be Actor with mouse sensor ?
- If not, is there a way to obtains 3d coords of the face where under the mouse-click ?

And then, if i obtain destination point, how to tell the object his destination changed ?
Is it possible to maintain a global variable which holds selected object?

Maybe GameEngine is not well designed for RTS games ...

Posts: 1
Joined: Mon Feb 10, 2003 9:45 am

Post by Peter » Mon Feb 10, 2003 9:50 am

If you post this kind of game related questions on the realtime forum at, im shore you'll get some answers.

Posts: 60
Joined: Wed Oct 16, 2002 8:51 pm

Post by OTO » Mon Feb 10, 2003 9:19 pm


Peter was right!! Post your game questions at the elysiun
forum, the Python gurus lie around there, and that's wath you
need, a Python script.
There's some available to your problem!

Post Reply