Game Development Community

Cursor animations, and selection problems...

by Andrew Brezina · in RTS Starter Kit · 02/08/2007 (3:58 pm) · 1 replies

I JUST bought the RTS Kit last week and I have been looking over the scripts trying to figure it all out. So far being the newbie <---- (Ha! Ha! look at how the noob spelled noobie!) I am I can compare figureing about the code to trying to drive a tin nail through steel...

I guess what I am looking for is an update on how far people have taken this RTS kit? What's the most anyone has implemented in it? I'm using 1.4.2, and the RTS kit. I have managed to get the World Domination pack implemented successfully, but I want to add more features.

Before getting into the harder stuff I would liek to first learn how to change some of the easier things. I would like to change the inputs for the game. Mainly the selection stuff. I want to change it so if I left click on terrain my selection gets cleared. Also, I would like to add some animated cursors showing what my action will be if I right click... such as arrows for move, a sword for attacking etc... Any help in pointing this blind newblet in the right direction would be awesome.

What files should I be lookin gat, and would these changes require any code changes? Thanks!

#1
02/10/2007 (11:58 am)
For the selection stuff, look in client\scripts\inputHandler.cs They have the functions that are bound to the mouse buttons there.

I figure you should be able to add a bit of code in onMouseDownTerrain to have it deselect the units.