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 ...
If you post this kind of game related questions on the realtime forum at www.elysiun.com,
im shore you'll get some answers.
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!