[Thread Prev] [Thread Next]
Hi!
OK, in that case:
1. The Public shapes tab can hold up to 128 shapes
2. Each backpack can hold up to 128 shapes
But that will certainly make your project hyper heavy, unless your shapes
are tiny
Also...
3. If you want to limit the size of your project, or use a million shapes in
the Public shapes tab, you can use the primitives saveshape and loadshape in
a looping procedure. You will have to make sure that you are in the right
folder (directory) before you play with those:
a) create 128 shapes
b) dotimes [i 128] [saveshape word "1batch :i + 1 :i + 1]
c) create another batch of 128 shapes
d) dotimes [i 128] [saveshape word "2batch :i + 1 :i + 1]
etc.
This will create 256 shapes (png files) named 1batch1 1batch2... 1batch128
2batch1 2batch2... 2batch128
If you don't like the syntax of dotimes (I don't), you can make a
traditional recursive procedure
Then, when time comes to retreive them:
dotimes [i 128] [loadshape word "1batch :1 + 1 :i + 1]
dotimes [i 128] [loadshape word "2batch :1 + 1 :i + 1]
That method allows you to create banks of gazillion shapes
Alain
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of William
Watkins
Sent: January 18, 2007 2:37 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Cc: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: MIA, Ask an Expert: More Shapes
OS X platform. Microworlds Robotics Edition Version 1.4
William H. Watkins
tel-952-988-3526
fax-952-988-3505
wwatkins@xxxxxxxxxxxxxxx
blakeschool.org
"One day our grandchildren will go to museums to see what poverty was
like."
- Dr. Muhammad Yunus, (2006 Nobel Peace Prize recipient.)
Previous by thread:
Re: MIA, Ask an Expert: More Shapes
Next by thread:
Music for
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|