Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
How can I make a path for the avatar to follow?
Posts: n/a
Default How can I make a path for the avatar to follow? - 10-21-2010, 09:13 PM

I need to make a path on the ground for the avatar to follow along. This is for a school assignment and my teacher told me if I have any problems to ask on here.
Reply With Quote
Senior Member
Dameria's Avatar
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 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 ...................
Alice Paint ...........................
Real-Time Clock ..................
Maze Game .........................
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.