Alice Community  

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

Reply
 
Thread Tools Display Modes
How can I make a path for the avatar to follow?
Old
darkstar09
Guest
 
Status:
Posts: n/a
Default How can I make a path for the avatar to follow? - 10-21-2010, 10: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
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 10-21-2010, 10: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
   
Reply With Quote
Reply

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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.