This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-07-11 19:33:41

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Squeak functions in Scratch

I know for a fact that Squeak can get data from the screen, because in Squeak, if you run "Display restoreAfter: [WarpBlt test3]"
it turns the mouse into a box, and when you click you place a dot, and in the upper left corner it shows that section in relation to the mouse and sets the size to the distance to mouse, and stamps like the stamp tool. I know you can make a sprite by right clicking and selecting the area, but why not be able to dynamically create sprites based on screen data? I saw a flash program which allowed the user to draw in several boxes, and press a button to animate the drawing and make it dance.

This next part is directed towards Jens and the Scratch Team:
I think there should be a block, probably under looks, which would allow you to make a sprite look like a section of the screen, either pre-selected sections or user driven selections. I don't know how to do this, and I was wondering if either Jens could make a hacked version with this new feature, or the Scratch Team could add it in in 1.3. I guess it would be dynamic costumes as opposed to dynamic sprites.....so in order to do this, there would be a block where the project creator enters the boundaries of the new costume on the screen, or is dynamically selected by the user of the project via mouse coordinates and such. For example, if it is pre-selected, you enter the y position of the bottom and top boundaries and x position of the left and right boundaries, and it will make a new costume according to the area selected. After the sprite needs to aquire a new look, another block would exist "save this costume" which would save it as Acquired Costume 1 (number varies on costumes) and the green flag automatically deletes these Acquired costumes, or if the user does not have the "save this costume" block before a new costume change, it deletes by itself.

I would make this myself, except I know literally nothing about Squeak  tongue


All your base are belong to us

Offline

 

#2 2008-07-11 20:44:56

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Squeak functions in Scratch

I do know one thing though: That balloon morph is SO MUCH FUN LOL!!!!!!!!!!!!!!!!


All your base are belong to us

Offline

 

#3 2008-07-11 20:47:31

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Squeak functions in Scratch

Cyclone103 wrote:

I do know one thing though: That balloon morph is SO MUCH FUN LOL!!!!!!!!!!!!!!!!

What's the balloon morph? And since we are on the subject of Squeak, (tell me if you want me to make a new topic. And this is pointed towards Jens…) where's a good site to learn Squeak, or how do you learn it? I wanna try making a block, but I don't know how to program in Squeak.

On-Topic:

I agree with this


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-07-11 20:58:14

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Squeak functions in Scratch

Bluestribute wrote:

Cyclone103 wrote:

I do know one thing though: That balloon morph is SO MUCH FUN LOL!!!!!!!!!!!!!!!!

What's the balloon morph? And since we are on the subject of Squeak, (tell me if you want me to make a new topic. And this is pointed towards Jens…) where's a good site to learn Squeak, or how do you learn it? I wanna try making a block, but I don't know how to program in Squeak.

On-Topic:

I agree with this

It is just a morph which has ellipses going from like 7 points, and you can drag to alter the shape of the "balloon" in real time. It is called a balloon cause if it is aligned a certain way, it makes balloon (for instance, animal balloon) like shapes. It is accessible  from
world menu > new morph > from alphabetical list > a-c > BalloonMorph

I think someone should post a complete tutorial for noobs (like me) so everyone (and me) can learn Squeak syntax and various applications. I especially like how with the paint tools, there are draggable buttons for rotation and sizing!


All your base are belong to us

Offline

 

#5 2008-07-12 05:16:01

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Squeak functions in Scratch

I agree that dynamic (and possibly even interactive) "runtime" sprite generation would be awesome.


Jens Mönig

Offline

 

#6 2008-07-12 10:48:41

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Squeak functions in Scratch

Jens wrote:

I agree that dynamic (and possibly even interactive) "runtime" sprite generation would be awesome.

Is there any way for you to do this?


All your base are belong to us

Offline

 

#7 2008-07-12 13:25:14

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Squeak functions in Scratch

Jens wrote:

I agree that dynamic (and possibly even interactive) "runtime" sprite generation would be awesome.

Yes, I definitely support dynamic creation of sprites (not only dynamic duplication). Also by selecting an image file (not only a screen region). I guess this is something that won't be so simple to add to the perfect and simple Scratch. Maybe we should think to something that we could call Scratch-The-Language that will be a full featured programming language, an evolution of Scratch towards a complete programming language. Hopefully, without going too far from Scratch's phylosophy (that I really love)

Offline

 

#8 2008-07-12 13:37:10

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Squeak functions in Scratch

s_federici wrote:

Jens wrote:

I agree that dynamic (and possibly even interactive) "runtime" sprite generation would be awesome.

Yes, I definitely support dynamic creation of sprites (not only dynamic duplication). Also by selecting an image file (not only a screen region). I guess this is something that won't be so simple to add to the perfect and simple Scratch. Maybe we should think to something that we could call Scratch-The-Language that will be a full featured programming language, an evolution of Scratch towards a complete programming language. Hopefully, without going too far from Scratch's phylosophy (that I really love)

Scratch has already unlocked some of Squeak's true potential, and I cannot wait for it to unlock more!


All your base are belong to us

Offline

 

#9 2008-07-12 15:22:07

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Squeak functions in Scratch

LOL, I know nothing about Squeak either other than the fact that alt-clicking things is fun. I'd love to see something like this. Actually, you wouldn't need something that goes too far astray from Scratch's philosophy to achieve this draw-your-character thing, only a "pen down over" block and the ability to change a sprite's rotation center. I, too, look forward to the day where you will be able to learn any programming language in blocks. Why not?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#10 2008-07-12 15:56:51

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: Squeak functions in Scratch

fullmoon wrote:

LOL, I know nothing about Squeak either other than the fact that alt-clicking things is fun. I'd love to see something like this. Actually, you wouldn't need something that goes too far astray from Scratch's philosophy to achieve this draw-your-character thing, only a "pen down over" block and the ability to change a sprite's rotation center. I, too, look forward to the day where you will be able to learn any programming language in blocks. Why not?

The thing, though, is how easy it is to add new functions. For example, have you tried ChrisCrouch's clone hack instructions? I followed the instructions, and within 10 minutes I had two new blocks, clone this sprite and delete this sprite. The scratch team could easily make a block that can have certain properties attributed to it, like a create-a-block. I really think that there are soooooo many things which can be done with this language.


All your base are belong to us

Offline

 

#11 2008-07-12 16:23:33

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Squeak functions in Scratch

You're so right; most (or all) of what Scratch can do is probably part of a Squeak function they just pulled out of a list. What the Scratch team is worried about is making sure it's not confusing to the beginning user and that it makes more sense, and works better, than commands from regular languages do. BTW I have tried ChrisCrouch's dynamic duplication thing, but the function weren't quite adapted to Scratch and kept deleting the actual "delete" block from the master sprite's palette.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer