Previous Thread  Next Thread

chat icon Moving Objects by mouse in RTS Way ?

max

Posted: Fri Jan 17, 2003 5:34 pm
Joined: 27 Nov 2002
Posts: 3
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 ...
Reply with quote


Peter

Posted: Mon Feb 10, 2003 9:50 am
Joined: 10 Feb 2003
Posts: 1
If you post this kind of game related questions on the realtime forum at www.elysiun.com, im shore you'll get some answers.
Reply with quote


OTO

Posted: Mon Feb 10, 2003 9:19 pm
Joined: 16 Oct 2002
Posts: 426
Hello

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!
Bye
António
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group