alice-teacher Alice 3.x

Donald Slater djslater107 at mac.com
Thu Mar 16 09:13:02 EDT 2017


Yvonne,
It would be very difficult to export / import methods that belong to the Scene class into other projects.

However, if the methods belong to an object (such as the ClownFish) or the Fish class, then that class can be exported and imported into other projects… See the following video demonstrations:

	https://www.youtube.com/watch?v=FXhZZMZawis&feature=youtu.be <https://www.youtube.com/watch?v=FXhZZMZawis&feature=youtu.be> - a summary video
	https://www.youtube.com/watch?v=LaNqDdHmvho&feature=youtu.be <https://www.youtube.com/watch?v=LaNqDdHmvho&feature=youtu.be> - focus on export
	https://www.youtube.com/watch?v=0XprEvcqjgY&feature=youtu.be <https://www.youtube.com/watch?v=0XprEvcqjgY&feature=youtu.be> - focus on import

If you build the mouse-click listener with if statements than different events can be triggered, depending on what is clicked on…

See the following video:

	https://www.youtube.com/watch?v=QEzgnRiHTXo&feature=youtu.be <https://www.youtube.com/watch?v=QEzgnRiHTXo&feature=youtu.be>

(Keypress events start at the 6:50 mark, but it may be useful to view the entire video).

If you have not covered the if statement in your course, another way to do this would be to 
add the mouse-click event
click on the details button, and select Set of Visuals
from SetOfVisuals, click on Custom Array…
In the Custom Array Dialog box, add the object or objects that you want to respond to that particular mouse event.

See this video demo:

	https://dl.dropboxusercontent.com/u/2332970/mouseEventDemo.mp4 <https://dl.dropboxusercontent.com/u/2332970/mouseEventDemo.mp4> 

Please let us know if you have any other questions…

All the best,
Don Slater

Alice Project
Carnegie Mellon University
Entertainment Technology Center
700 Technology Drive
Pittsburgh, PA 15219

Email: dslater at cmu.edu

I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.
--- Henry David Thoreau

The true object of all human life is play. -- G.K. Chesterton


> On Mar 16, 2017, at 12:37 AM, Pigatt, Yvonne <ypigatt at ccbcmd.edu> wrote:
> 
> Hi,
>  
> I am working on a middle school project and have run into some problems.
>  
> Can Alice 3.x procedures be imported into other Alice 3.x projects?
>  
> I am trying to combine code from four different students into one project.  Can there be multiple mouse click event listeners that initiate different events?
>   
> Thank you,
> 
> Vicky
> Yvonne Pigatt, Assistant Professor
> Computer Science/Information Technology
> The Community College of Baltimore County
> 443-840-2835|443-840-5035 fax |ypigatt at ccbcmd.edu <mailto:ypigatt at ccbcmd.edu>
> CCBC. The incredible value of education.
> The only way to do great work is to love what you do..Steve Jobs
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu <mailto:alice-teachers at lists.andrew.cmu.edu>
> https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers <https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20170316/a8ab63c3/attachment.html>


More information about the alice-teachers mailing list