- Joined
- Sep 15, 2006
- Messages
- 136
Hi, I want to make some units bounce when them touch a region,
I'll make a square of 4 regions, and I want some units in it bouncing forever.
But no random moves, I want that if one comes directly rigth the bounce will be directly left, if one comes in a diagonal from left to right and from down it will bounce in other diagonal from the point of colision to a contrary side diagonal.
(My english isn't very good so the text before can have no sense )
But I have no idea of how to do:
A unit enters "region X"
Owner of entering unit equal to player 12 (brown)
Order entering unit to move unit to ???*where*???
Or something like that, huh?
I'll make a square of 4 regions, and I want some units in it bouncing forever.
But no random moves, I want that if one comes directly rigth the bounce will be directly left, if one comes in a diagonal from left to right and from down it will bounce in other diagonal from the point of colision to a contrary side diagonal.
(My english isn't very good so the text before can have no sense )
But I have no idea of how to do:
A unit enters "region X"
Owner of entering unit equal to player 12 (brown)
Order entering unit to move unit to ???*where*???
Or something like that, huh?