alice-teacher Time in Alice 3.1

Koski, Jim jim.koski at mgschools.net
Wed Jan 22 15:31:19 EST 2014


To add a time in Alice 3.1 click on the initializeEventListeners tab at the
top. Click on add event listener --> Scene Activation/Timer
-->this.addTimeListener.

This will allow you to have a block of code where you could add a variable
that can increase or decrease everytime the "Timerlistener" is triggered.
If you want to display it,  just simply add a TextModel and have the text
change.

Jim

Jim Koski
Computer Science/Math Teacher
Monona Grove High School
608-316-1870
jim.koski at mgschools.net


On Wed, Jan 22, 2014 at 12:45 PM, <
alice-teachers-request at lists.andrew.cmu.edu> wrote:

> Send alice-teachers mailing list submissions to
>         alice-teachers at lists.andrew.cmu.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
> or, via email, send a message with subject or body 'help' to
>         alice-teachers-request at lists.andrew.cmu.edu
>
> You can reach the person managing the list at
>         alice-teachers-owner at lists.andrew.cmu.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of alice-teachers digest..."
>
>
> Today's Topics:
>
>    1.  Hello (sarita tejwani)
>    2. Re:  Hello (Harrod Patrick L)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 22 Jan 2014 22:48:43 +0530
> From: sarita tejwani <tejwani.sarita at gmail.com>
> Subject: alice-teacher Hello
> To: alice-teachers <alice-teachers at lists.andrew.cmu.edu>
> Message-ID:
>         <
> CAPcTCQuMr8LcrMWukk3USRnUULjDoQiGdJiNun1AttXVhZeNYw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello
> I am a teacher .
> I am using Alice 3.1.6 version for designing a project. I will be thankful
> if anyone guide me on how to add a timer to the game?
> Regards
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140122/8c4d67b6/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 22 Jan 2014 18:26:56 +0000
> From: Harrod Patrick L <pharrod at jeffco.k12.co.us>
> Subject: Re: alice-teacher Hello
> To: Alice educators <alice-teachers at lists.andrew.cmu.edu>
> Message-ID:
>
> <20FC6A509F93E8429FB6907B831F8B2B90B857C4 at ESC-EXCH-MBX2.jeffco.schools>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Have you seen the attached tutorial. It's good.
> Pat
> ________________________________
> From: alice-teachers-bounces+pharrod=jeffco.k12.co.us at lists.andrew.cmu.edu[alice-teachers-bounces+pharrod=
> jeffco.k12.co.us at lists.andrew.cmu.edu] on behalf of sarita tejwani [
> tejwani.sarita at gmail.com]
> Sent: Wednesday, January 22, 2014 10:18 AM
> To: alice-teachers
> Subject: alice-teacher Hello
>
> Hello
> I am a teacher .
> I am using Alice 3.1.6 version for designing a project. I will be thankful
> if anyone guide me on how to add a timer to the game?
> Regards
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140122/b43b8124/attachment.html
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: timerTutorial.pdf
> Type: application/pdf
> Size: 972429 bytes
> Desc: timerTutorial.pdf
> Url :
> http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140122/b43b8124/attachment.pdf
>
> ------------------------------
>
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers
>
>
> End of alice-teachers Digest, Vol 42, Issue 12
> **********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140122/593354ce/attachment.html 


More information about the alice-teachers mailing list