Okay I have been trying to write code to a SketchMorph (I drew something from the paint editor thing that is built into the squeak image).
I have tried some things like bring up the morphic halo, then pressing the debug thing on the halo and then "Make own subclass" and I also tried "Browse Morph class". I know that the "viewer for player brings up the etoys maker thing but is there a way to code my SketchMorph in the system browser?
Thanks every one who looked at this
Under the age of 15 so don't want to post my name
In Squeak get a halo on anything. Say, your sketch morph. Now click the
light blue button with the eyeball. You will get the same viewer on any
object. You could do it on a browser, open the viewer, click the yellow
exclamation mark, and it will make a croak sound. Press the yellow
exclamation mark beside "forward by" and it will march forward five pixels.
The videos from WavePlace are for Etoys, but the viewer is on Squeak as
well. When you've done that a bit and found out what you want, then you
can look into the browser code to see the actual Smalltalk code. But
playing with the tiles presented in the viewer is not a bad way to
discover your options. Those WavePlace videos can help.
You need to tell as a bit more precisely what you want to do. Also, please include a bit of context in your replies. This is a mailing list, most of us do not use the web forum. E.g. earlier you wrote:
> Okay I have been trying to write code to a SketchMorph (I drew something
> from the paint editor thing that is built into the squeak image).
> I have tried some things like bring up the morphic halo, then pressing the
> debug thing on the halo and then "Make own subclass" and I also tried
> "Browse Morph class". I know that the "viewer for player brings up the etoys
> maker thing but is there a way to code my SketchMorph in the system browser?
So of course you can subclass SketchMorph in a browser. "Make own subclass" changes the morph on screen to your new class. Then choose "Browse Morph class" which opens a browser on that new class. Or open a System Browser and search for your new class. Or create your new subclass right in the System Browser.
The question is, why do you want to do that? What is the result you want to have? For example, if you just want to move an image around the screen you would rather use an ImageMorph. And you normally would not subclass it but *use* it from your own code. Morphic is best used by compositing existing morphs into your own UI, not by subclassing.
So again, give us a bigger picture so we know what you want.