alice-teacher Amusement Park - making objects solid

Milbury, Michael MilburM at culver.org
Thu Oct 6 10:49:44 EDT 2011


One thing you can do is to use one of the distance functions for objects
to detect when their center's are a certain distance from each other.
If you go inside this distance, you can essentially make it so the
object bounces off the other object it is approaching.  I hope this
makes some sense.  Our student created video games for a major project
and had to incorporate this idea.

 

From: alice-teachers-bounces+milburm=culver.org at lists.andrew.cmu.edu
[mailto:alice-teachers-bounces+milburm=culver.org at lists.andrew.cmu.edu]
On Behalf Of Bill Kranz
Sent: Thursday, October 06, 2011 8:32 AM
To: alice-teachers at lists.andrew.cmu.edu
Subject: alice-teacher Amusement Park - making objects solid

 

Hi All!

 

I am new to Alice and am exploring the program with my programming club
first.

I have downloaded Alice 2.2 and am running on Windows machines.

 

The students asked the following questions that I hope I can get some
answers here or at least a point in the right direction/tutorial.

 

In the amusement park example world, I have had a student add an object
(Angel for example) and then use that object as the vehicle for the
camera.  He then uses the arrow keys to get the object to explore the
amusement park world.  How do you get an object to not go through other
objects while using the keyboard arrow keys?

 

Also in the amusement park world, when you explore the world, you slowly
sink into the ground (the camera angle is not level with the ground).
How do you change this?

 

Thanks, in advance, for your help.  Also, if this is not the right forum
for this type of question, let me know where a good place would be.

 

Bill Kranz

Computer Technology Teacher

Liberty Common High School

1-970-672-5500 x480

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20111006/a52bc141/attachment.html 


More information about the alice-teachers mailing list