View Full Version : How Do I Make Hills???
madden
03-17-2006, 09:27 PM
How do I make hills in alice 2.0. I could not think of eneything.
Gabe please help me.
P.S Visit me! Oh I know we could eat Icecream together, get brainfreeze together, and Scream together!
lanceA
03-17-2006, 10:07 PM
In the Environments folder there is a Hill class. Using multiple instances of this class and changing the color of each instance creates some nice hills. Additionally the Nature folder has a Vocano. I used two instances of the Rock class in the Nature folder and resized them to also simulate hills. - Hope this helps.
madden
03-21-2006, 07:37 PM
ok, that worked, but I walk thrue them can I stop that???
thanks for responding...
P.S ... I can't think of eneything
lanceA
04-06-2006, 09:39 AM
To prevent 'walking through' the mountains you may wish to use an Alice function, distance to - that function will return the distance (in meters), however it measures from the 'center' of objects. Therefore you may wish to try something like:
object move forward (object distance to mountain - 1)
Replace 'object' with the name of your object, i.e., robot, Alice, skater, etc. You also may have to experiment with the amount (-1) to be subtracted.
The manual, Learning to Program with Alice has an even better method to do this, Page 56.
Hope this helps.
madden
02-17-2007, 01:30 PM
Thanks it did:)
P.S Thanks it did:)