Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Is it possible to copy directly between methods?
Old
411
Guest
 
Status:
Posts: n/a
Default Is it possible to copy directly between methods? - 10-19-2006, 01:07 AM

Is it possible to copy the content of one method directly into another method?
   
Reply With Quote
Copying methods
Old
DrJim
Guest
 
Status:
Posts: n/a
Default Copying methods - 10-19-2006, 10:16 PM

The answer is yes with one basic limitation. Just put everything in the method in one "do in order" block, drag it to the clipboard, then open the new method, drag the block from the clipboard and drop it into the method. If you want to drop it into a new world, don't close Alice (that will erase the clipboard), just open up the new world and drag and drop there.

The limitation is a fairly big one - the method where you are trying to drop the block has to recognize all the "stuff" (like the highly technical term ?) in the block to be dropped. There are lots of rules here - the easiest way to find out, however, is to just try. (As a simple example, if the method calls for a dog named "Spot" to move and there is no "Spot" in the world, the drop will fail regardless of how many other dogs exist.) If the "drop" fails, try deleting stuff (objects, function and method calls, parameters, variables, etc.) or changing it to things you know are recognized at the world level - frankly it's often easier just to manually recreate the logic in the new method.
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.