Game Development Community

Adding Enemies?

by none · in RTS Starter Kit · 08/12/2008 (8:57 am) · 3 replies

Hi everyone, I just bought the rts kit, but I have no idea as of how to make an enemy, even just dropping in one enemy unit. Also, does anyone know how to make it so that when the player kills a certain amount of an enemy unit, they win? Can someone point me out to one of these tutorials. Thanks!

#1
08/12/2008 (7:39 pm)
Hi Krystian, glad to know about a new RTS developer here :)

About winning conditions, there is nothing implemented yet, but something like what you describe, based on the number of kills should be simple enough; just a kill counter would do the trick, but to finish the game based on that, you will have to also implement some extra functions.

About the enemy, is a bit more complex. Technically, by adding a new client to a game, you are adding a new faction, but the fact is that the kit lacks of any kind of AI functionality, meaning that even in opposite/different teams, the units will not attack each other, as there is no code to manage that.

I really recommend you to read to the RTS Section in TDN, and make (at least) a quick tour over the RTS forums.

Also, feel free to introduce yourself and tell something about your project in this thread, as it is the "local custom" ;D
#2
11/12/2008 (7:43 pm)
Krystian are you still having problems with these two things? If so I'd be more than happy to help; I'm at a break point in my own project so I have some time and braincells to kill.
#3
11/13/2008 (4:43 pm)
Hey thanks for the offer, but im currently trying to learn torque a little bit later and have been working with the fps creator, but I will definately hit you up later.