alice-teacher conditional events

Tom Stokke tstokke at cs.und.edu
Wed Feb 16 12:35:13 EST 2011


Will this work? I set up a simple world with a single jet. I first set up a dummy camera position before moving the camera to the "top" of the world, to get a birds-eye view of the jet. I ALWAYS set a dummy to the original camera position and rename it originalPosition if I plan on moving the camera.

I added the rollJet method and then the two events. It will "roll" the jet as it moves forward or spins. Hope this helps. Let me know if it isn't what you were looking for and I'll see what I can do.

Tom


-----Original Message-----
From: alice-teachers-bounces+tstokke=cs.und.edu at lists.andrew.cmu.edu [mailto:alice-teachers-bounces+tstokke=cs.und.edu at lists.andrew.cmu.edu] On Behalf Of Eric Skogen
Sent: Tuesday, February 15, 2011 3:17 PM
To: Alice educators
Subject: Re: alice-teacher conditional events

Not sure this is the best way to do it, but it's what I would tell my students to do.

Make a property on the plane initialized to false.  When the key is initially pushed (begin section of while a key is pressed event) set it to true.  When they let go (end section of the same event) set it back to false.

Use that property in your keyboard event as the condition for an if.

-----Original Message-----
From: alice-teachers-bounces+eskogen=hbcguam.net at lists.andrew.cmu.edu [mailto:alice-teachers-bounces+eskogen=hbcguam.net at lists.andrew.cmu.edu] On Behalf Of Sheri Williams
Sent: Wednesday, February 16, 2011 12:51 AM
To: Alice educators
Subject: Re: alice-teacher conditional events

Good morning,
I have a student that created a Alice program moving an airplane with the arrow keys using an event.  He would like to make the plane roll when the user presses the space key and the arrow key is already pressed.  We have not been able to find a way to make the event conditional.  Any suggestions?  
Thanks so much,


Sheri Williams
Computer Teacher
Midpark High Computer/Business Chairperson
Phone: 216-676-8400


----- Original Message -----
From: "EILEEN PELUSO" <pelusoem at lycoming.edu>
Sent: Fri, 2/11/2011 08:32
To: "Alice educators" <alice-teachers at lists.andrew.cmu.edu>
Subject: Re: alice-teacher changing the picture


Arturo,
The tutorials at http://www.cs.duke.edu/csed/alice09/tutorials.php are an excellent place to start.  They have tutorials for beginners, and once you've completed one of those, there are numerous tutorials on more advanced topics.
Eileen Peluso
Lycoming College

>>> On 2/10/2011 at 8:02 PM, in message <AANLkTikwkT-myoYtuoTbtaMqUoms=OrPCbmhFyYQarPV at mail.gmail.com>, Arturo Garcia Cole <cole at ciencias.unam.mx> wrote:

Dear Wanda
I hope you are well
receives greetings

Arturo Garcia Cole I'm working in the CCH-South, I am a professor of physics, belonging to the Universidad Nacional Autonoma de Mexico
I want to work with the Alice program, only wanted to show me where to find a quick tutorial in which to make a simple example and others that can perform more advanced and so on.
thanks



"Obedézcase pero no se cumpla"
cédulas reales de la Nueva España.

Hoy es un gran día... y así tendran que ser los que sigan!
Rosaemi

SALUDOS, DESDE EL CCHSUR, UNAM

ARTURO GARCIA COLE


_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
This email is intended only for the addressee(s) and may contain material that is confidential under state and federal law. If you were not an intended recipient, please notify the sender and delete all copies. Berea School District email is to be used only for school purposes. The District may monitor email to and from its network. This email and any response to it may be archived for later retrieval and may constitute a public record and therefore may be made available upon request in accordance with Ohio Public Records law (ORC 149.43).
_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
_______________________________________________
alice-teachers mailing list
alice-teachers at lists.andrew.cmu.edu
https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aliceExample.jpg
Type: image/jpeg
Size: 198332 bytes
Desc: aliceExample.jpg
Url : https://lists.andrew.cmu.edu/mailman/private/alice-teachers/attachments/20110216/ab18a9ab/attachment-0001.jpg 


More information about the alice-teachers mailing list