- Joined
- Mar 25, 2008
- Messages
- 2,955
Hi everyone ^^
I have a little problem.
As many of you know, a TD consists mainly of towers. Now i made a race which can run around freely.
Works fine unit the point that they should have an area to walk which is define by a tower.
Like:
x is the tower and o are the units
The thing is, the position of the tower should center the region (at persent a rect with size 2000x2000). If they leave the region, they are moved back 50 wcunits so they can't go further. That works well for one player but as i have 9 possible players playing that race, the regions get mashed up and in the end the units can move where they want -.-
I also tried it via an aura with a certain aoe and if a unit leaves that aoe it's forced to move back but that didn't work fine -.-
So, any solutions for me ? ^^
I have a little problem.
As many of you know, a TD consists mainly of towers. Now i made a race which can run around freely.
Works fine unit the point that they should have an area to walk which is define by a tower.
Like:
Code:
________________________
| o |
| |
| X |
| o o |
| |
| o |
|_______________________|
The thing is, the position of the tower should center the region (at persent a rect with size 2000x2000). If they leave the region, they are moved back 50 wcunits so they can't go further. That works well for one player but as i have 9 possible players playing that race, the regions get mashed up and in the end the units can move where they want -.-
I also tried it via an aura with a certain aoe and if a unit leaves that aoe it's forced to move back but that didn't work fine -.-
So, any solutions for me ? ^^