Game Development Community

Turn based implementation

by William Urban · in RTS Starter Kit · 08/29/2005 (8:47 am) · 1 replies

Hello everyone, so I was fiddling with something in my head, something to make the RTS kit able to do turn based. How do you think that would work? Set a global variable saying who's turn it is on the server and only they can move units? How would you limit the movement, or firing rate of something so that they can do X actions per turn, or make allowances for terrain type or action points. Anyone out there doing something like this? I would love to work on or do a turn based fantasy multiplayer jagged alliance 2 type game with elves and dwarves and stuff. Too cool.

-Will

#1
09/09/2005 (8:51 am)
Some more ideas to add to this. So have a global variable with whos turn it is. Each unit has a set number of action points, when they move or fire they use up these action points. When they reach 0 they can no longer do anything. When all the units have moved/attacked then the player can hit a button to finish his turn. This increments who's turn it is, refreshes all of the action points of the other player and then they can move. They still have the option to click and select units to check out their stats, move the map etc but can't actually move any units until it's their turn and the server refreshes the action points. Now I guess one thing I would try to figure out how to do is make it so on the ground you see like a dotted line indicating where the unit can move with the action points it has.

Too many ideas, not enough knowledge.

-Will