Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Extend Cloning
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default Extend Cloning - 01-16-2012, 02:14 AM

After I made a post about Touhou, I got to thinking about cloning (Because trying to do this without cloning during play is damn near impossible.)
We can already clone thanks to some of arty's handy-dandy scripting, but as you might know it runs into problems.
Namely that if you press play multiple times, it clones 1 + number of times play has been pressed, where the number of times starts at 0 upon the first click. Another important one is that you can't really delete the cloned objects.

These two problems aren't really a big deal. The idea extends here:
Make a method tile, same as the Do In Order or the Do Together, but as example psuedocode, something like this

Code:
Loop [5] times{
   //Assume the cloned object has the exact same position and orientation 
   Clone of [Object] do In Order{
      //This tile creates the clone.
      insert [Clone of Object] at end of CollisionList
      [Object] move forward .5 meters abruptly
      delete [Clone of Object] [withoutspin]
   }
}
Yeah. An option to include spin or not. Outrageous right?
Of course we could just make the clones not show up and remove them from all lists and arrays.. But that would cause memory leaks, and Alice already takes up a lot of memory as it is.

Another extension to this tile would be to give it special properties, such as when dragging [Clone of Object] from the tile, there will be a dropdown list of every subobject in the object's hierarchy, plus "The Whole [Object]" just as if you were dropping a regular object. Essentially what I'm saying is to extend the cloned object's capabilities to be the exact same as the original object without use of scripting or "Object's variable named key" or any such roundabout method like that.

Last edited by Mr Kidnapper; 01-16-2012 at 02:20 AM.
   
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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