PDA

View Full Version : Run time class copying.


protomonk
04-11-2006, 01:49 AM
Simple, is there a way to, in run time, to copy a class.
exsample,
In a new world, you insert a box, add some code.... that when a user click on it, it makes a duplicate copy next to it, so now, in run time, you have two copy of the box(with difference names).

I trying to make a plingo like game/screensaver like thing where the computer duplicates the falling ball several time to where there is a infanete amount of balls falling on screen, for example.

I don't think this is possable in alice, just wordering of the DEVS know away.

Jabberwocky
04-23-2006, 03:05 PM
Yeah, I'd like to be able to dynamically instantiate objects as well. I modified a class and saved it in the Gallery. I can now add an instance of it to the world using the Add Objects function in the IDE, but I'd like to do this at runtime too.