View Single Post
Copying methods
Old
DrJim
Guest
 
Status:
Posts: n/a
Default Copying methods - 10-19-2006, 11: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