SketchMorph?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

SketchMorph?

OrgmiGeek
Hello
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
Reply | Threaded
Open this post in threaded view
|

Re: SketchMorph?

OrgmiGeek
can some one help me I have bin searching for a really long time.
---
Under the age of 15 so don't want to post my name
Reply | Threaded
Open this post in threaded view
|

Re: SketchMorph?

Chris Cunnington
On 12-10-14 4:38 AM, OrgmiGeek wrote:

> can some one help me I have bin searching for a really long time.
>
>
>
> -----
> ---
> Under the age of 15 so don't want to post my name
> --
> View this message in context: http://forum.world.st/SketchMorph-tp4650570p4651125.html
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

Download this version of Squeak:

http://squeakland.org/download/

And watch these videos:

http://www.waveplace.org/courseware/basic-etoys/beta.jsp

That will show you how to use tiles to program your sketch. You may want
to use code directly, but how about you give this a try first?

Chris
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: SketchMorph?

OrgmiGeek
thank you
but I want to do it in squeak not Etoys
---
Under the age of 15 so don't want to post my name
Reply | Threaded
Open this post in threaded view
|

Re: SketchMorph?

Chris Cunnington
On 12-10-14 9:12 AM, OrgmiGeek wrote:

> thank you
> but I want to do it in squeak not Etoys
>
>
>
> -----
> ---
> Under the age of 15 so don't want to post my name
> --
> View this message in context: http://forum.world.st/SketchMorph-tp4650570p4651156.html
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
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.

Chris
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: SketchMorph?

Bert Freudenberg
In reply to this post by OrgmiGeek
On 14.10.2012, at 06:12, OrgmiGeek <[hidden email]> wrote:

> but I want to do it in squeak not Etoys


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.

- Bert -

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners