alice-teacher Lists on Alice 3.4

Don Slater don at alice.org
Mon Apr 23 07:35:35 EDT 2018


Mourad,
Dynamically creating objects during runtime in Alice is not possible. All objects that may be used in an Alice world have to be added to the object, and possibly hidden until needed, before the project executes.

To drag and drop an object in a project while it was running (see that attached screen shot), go to initializeEventListeners tab (1), click on Add Event Listener button (2), select Mouse from the menu (3), and select addDefaultModelManipulation listener.

This will allow you to click and drag any model in the scene. Holding down the Control key (Windows) (Option key - Mac) will turn the object. Hold the Shift key and drag an object to raise or lower an object.

Let us know if you have any other questions.

All the best,
Don Slater

Alice Project





> On Apr 22, 2018, at 7:32 PM, Azer, Mourad <MOURAD.AZER at det.nsw.edu.au> wrote:
> 
> Hi 
> I am just new in teaching alice 3.4. My previous experience was in Scratch where I could create up to 255 instances of the object of my choice (in code). Is there a way to do this in Alice 3?
> One more question
> How can I create an event to drag and drop an object (in code)
> 
> Kind Regards
> 
> Mourad Azer
> ICT Coordinator
> 
> Fairvale High School
> Ph: (02) 96043118
> fax: (02) 9725 5246
> ________________________________________
> From: alice-teachers <alice-teachers-bounces+mourad.azer=det.nsw.edu.au at lists.andrew.cmu.edu> on behalf of Don Slater <dslater at andrew.cmu.edu>
> Sent: Thursday, 19 April 2018 8:34 AM
> To: Alice Teachers
> Subject: Re: alice-teacher Lists on Alice 3.4
> 
> Carlos,
> Yes, although Alice 3 does not support Lists as Alice 2 does, it does support arrays. The attached set of Powerpoint slides should show how how to build an array structure in Alice and how to use the “for… each” and the “each … in together” data structures use for manipulating elements in the arrays.
> 
> It is not an exhaustive explanation of the topic, but it should serve as a good starting point for your student.
> 
> Please feel free to let me know if you have another questions…
> 
> All the best,
> Don Slater
> 
> Alice Project
> 
> 
> **********************************************************************
> This message is intended for the addressee named and may contain
> privileged information or confidential information or both. If you
> are not the intended recipient please delete it and notify the sender.
> **********************************************************************
> _______________________________________________
> alice-teachers mailing list
> alice-teachers at lists.andrew.cmu.edu
> To change settings or unsubscribe visit:
> 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/20180423/e51b4ccb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moveObject.png
Type: image/png
Size: 204449 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20180423/e51b4ccb/attachment-0001.png>


More information about the alice-teachers mailing list