| 06-15-2006, 03:57 AM | #1 |
I have a spell that forces the hero to walk the direction the player points it to. And then, they'll walk to that place. However, the problem is that I have no idea how to make a unit move in a direction. Does someone mind telling me, please? |
| 06-15-2006, 04:32 AM | #2 |
You have two options that I know of: 1) Order unit to move to point with trigger. The point is determined by either taking the angle and using sin and cos for x and y points or polar if you are lazy and the order should be something way far by the edge of the camera bounds. 2) Use setX and setY but without the order. Note: In both methods, you will need to give the unit ward classification and disable "smart" orders or the player can still do stuff. |
| 06-16-2006, 12:49 AM | #3 |
Hmmm... I don't really understand, but I'll see what happens when I try it. Thanks. |
