
10-21-2010, 09:23 PM
You could create dummy objects at the the corners of the trail. For example if he is going to walk forward 13 meters before turning, you put that dummy object at the place where he would turn, and you keep doing that until the trail is done. Make sure the dummy objects are at the same height that the avatar is on though, because you are going to have to move the avatar to the dummy objects, and it might make the avatar go up or down if they are not straight.
So anyways, once you have the path just code the animation so that the "(avatar) move to (dummyObject1)", and once it moves there you can then orient the avatar to the dummy object and then procede to repeat this with dummyObject2, and so on until you are done.
Check out my best projects so far and please comment:
Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
|