Friday, January 13, 2012

How to tidy up the code

When you write a program with several hats, or you have program blocks "floating around" after trying different solutions, or program blocks are hidden behind the stage, there is a quick way to tidy up all the code.  Right click in the scripts area and choose clean up.
Example: If you wrote a program with 4 hats, one for each of the 4 events when you press the up arrow, down arrow, right arrow and left arrow the stacks might be far apart and even be too low to see or some might be further to the right under the stage.  Just right click in the scripts area and choose clean up.
This option will left align all the stacks and move them closer together vertically.

No comments:

Post a Comment