alice-teacher Is there a way have Alice programs "spawn" objects?

Don Slater dslater at andrew.cmu.edu
Thu Jan 4 15:25:26 EST 2018


Carlos,
I am afraid that in the Alice interface, both 2 and 3, all objects have to be in the project before the world starts to run. They can be off-screen and moved into place, or their opacity is 0 and then set to 1, but Alice cannot “spawn” or dynamically introduce objects into a virtual world at runtime.

If you are working with Alice 3 in Java NetBeans, it is possible to spawn objects in this way, because you are working in real Java. It is not a trivial process, and I only introduce it to students after they have developed some experience with Java.

Let me know if you have any questions.

All the best,
Don Slater

Alce Project

> On Jan 4, 2018, at 2:34 PM, Carlos Bovell <cbovell at nburlington.com> wrote:
> 
> Hi,
> 
> We are using Alice 2.4 and will move to Alice 3 in March. Some of my more advanced students are looking for a way to have their programs "spawn" new objects. Is it possible to do something like this or do they have to have all objects in place beforehand for any games they try to make?
> 
> Thanks for taking my question.
> 
> Best,
> Carlos Bovell
> _______________________________________________
> 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



More information about the alice-teachers mailing list