Alice Community

Alice Community (
-   How do I...? (
-   -   Creating a module. (

Raziel200480 11-20-2010 09:41 PM

Creating a module.
How do I create a module? I'm using the program to create an animated clip for a class project and one of the instructions is to include two actions into a "module" but I'm pretty lost unless a module is one of the options like "Do Together" and I'm making it more confusing than it actually is. Are the modules what the tabs are called? If so I think I might have figured it out, the segment named "method".

fire burns 12-03-2010 06:01 PM

Our teacher calls a 'module' this: "A 'module' of code is the Do Together, Do In Order, a group of code, etc. "

I believe that what you are referring to is a method. A method can be class-level (a Class is an object in Alice) or World-level. I think your assignment is to use at least 2 lines of code in a method to make an object do something. I can tell you are fairly new to Alice, as am I. I only started using this program in October, but I have come a long way in a short amount of time. Try experimenting with Alice and see what you can create.

I may not have been clear enough about methods above. Yes, the methods are the Tabs that open when you click "create new method".

Happy experimenting.

LadyRhi 08-19-2011 11:22 PM

Modules of Code
Our instructor asked us this:

"What are three modules (named collections of code), not variables, that you can break an Alice program in to?"

Our class is completely stumped. Below is the discussion thread from other classmates including teacher comments. Any enlightenment would be most appreciated.

The previous post that describes modules as do in order and do together makes sense, but still looking for clarification.


*The only thing I know to break down your code further is breaking down methods into sub-methods. You have three kinds of methods.* There are primary methods, class level methods, and world level* methods.

*I have read back in the book and done research but am having trouble with this question. My gut tells me that the three modules in Alice are the Methods, events, and functions.

*I'm not sure of this answer but the only module that comes to mind are the code edit pane which allows us to break the code up by altering a method into a sub-method.

*The three modules that a program in Alice can be broken down into are the code that sets the stage for the program. This is the first module and contains anything that would have to do about the background color, sound, size, and background objects. It is like setting the stage for the play. The next module*is the actors or the objects module that contains all the code that pertains to what objects will be included in the program and what role they will be playing. This would be the meat and potatoes of the program. The third module ties in with the second and describes what the program is going to do and how it will end. The three modules can be looked at as the beginning, during, and end of a program.

*I really couldn't find the answer to this so this is a total guess. The 3 modules are the beginning, during and end of an event (BDE).

*The three modules in Alice are:
• Methods
• Events
• Functions

*I can’t find anything in the reading that can verify what the three modules are that Alice can be broken down into, but if I were to make an educated guess I would say that objects, functions and parameters are the three different code collector modules of Alice.


From our instructor:

What are three modules (named collections of code), not variables, that you can break an Alice program in to?

Objects fit the definition of "named collections of code", agree? Color, sound, size, are attributes. Review what we have covered and see if you can come up with two other named collections of code (what is often referred to as a module).
Here is one reference. Please suggest a clear term.

All times are GMT -5. The time now is 07:55 PM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.