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

#1 2008-06-28 05:03:27

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

Width and Heigth instead of Size

I support JSO's suggestion of having Width and Heigth for sprites instead of Size (or other than Size). In this way it would be possible to manage elements (such as rectangles for example) creating animation effects that it would be very hard to create in a different way.

Offline

 

#2 2008-06-28 05:11:51

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

Re: Width and Heigth instead of Size

I agree. It'd be excellent to have


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

 

#3 2008-06-28 08:12:49

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Width and Heigth instead of Size

Yes, this feature would be an excellent addition to Scratch! I support it!

Offline

 

#4 2008-06-28 09:44:47

beefrocks
Scratcher
Registered: 2008-06-27
Posts: 18

Re: Width and Heigth instead of Size

I agree completely. Just yesterday, I wanted to change the height of a sprite (the character that plays Farmer Brown and the CIA agent in the movie Cow Hunt Epilogue) without changing the width. That would be wonderful.

Offline

 

#5 2008-06-28 10:01:43

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Width and Heigth instead of Size

i agree


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#6 2008-06-28 12:48:36

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Width and Heigth instead of Size

As I already said in another topic, count me in!


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#7 2008-06-28 14:02:30

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

Re: Width and Heigth instead of Size

That would be awesome!


All your base are belong to us

Offline

 

#8 2008-06-29 04:28:46

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: Width and Heigth instead of Size

I Agree Like Mad!

Offline

 

#9 2008-06-29 09:19:39

registeel
Scratcher
Registered: 2008-04-27
Posts: 500+

Re: Width and Heigth instead of Size

Just imagine, a pin widthed scratch cat!

Offline

 

#10 2008-06-29 10:19:46

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Width and Heigth instead of Size

would it stretch in terms of X and Y or the sprites sides?  So if it were rotated it would still look the same.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#11 2008-06-29 11:08:40

mrguy740
Scratcher
Registered: 2008-01-25
Posts: 100+

Re: Width and Heigth instead of Size

I agree but it would be convenient if they still kept size


The imagination exercises a powerful influence over every act of sense, thought, reason, over every idea. Latin Proverb

Offline

 

#12 2008-06-29 11:30:47

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

Re: Width and Heigth instead of Size

bigB wrote:

would it stretch in terms of X and Y or the sprites sides?  So if it were rotated it would still look the same.

I would go for the sprites sides. I don't think there are cases in which X and Y would be more meaningful.

mrguy740 wrote:

I agree but it would be convenient if they still kept size

I do agree.

Offline

 

#13 2008-06-30 11:39:57

bigB
Scratcher
Registered: 2007-06-09
Posts: 100+

Re: Width and Heigth instead of Size

mrguy740 wrote:

I agree but it would be convenient if they still kept size

this would be helpful also as the hieght and width could be a percentage of the size.


http://scratch.mit.edu/projects/bigB/260981 Draw to Text
http://scratch.mit.edu/projects/bigB/181829 3D Stunt Flyer

Offline

 

#14 2008-07-03 09:38:41

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

Re: Width and Heigth instead of Size

I turned out that (obviously?) the possibility to change the x/y ratio (something related to what I was asking for) is already coded in scratch, simply it was hidden for unknown reasons (usally the Scratch Team try to make Scratch as simple and useful as possible and always coherent with Scratch's philosophy).

So, if you really want to experiment with it, you can create a new "stretch" block that will set to what percentage the x dimension relates to the y dimension. So, for example, by setting the stretch to 200% will cause the x-dimension of the sprite to be double with respect to the y-dimension. By combining size and streach I can reach the effect I needed.

For those that would like to bring the streach block back to Scratch, here you are some stepwise instructions adapted from Scratch source page and the amazing Jens' tutorial on how to add a new block.

How to start Scratch Source Code:

To get started:

- first copy the Scratch application ("Scratch.exe" or "Scratch.app") and the Scratch Plug-ins Mpeg3Plugin.dll and ScratchPlugin.dll from your normal Scratch folder into the Scratch source code folder. (The Scratch application is actually just a Squeak virtual machine, so any recent Squeak virtual machine should also work.)
- put a copy of the Squeak source code file in that folder ("SqueakV2.sources" you can download it from http://scratch.mit.edu/files/source-code/SqueakV2.sources)
- Finally, drop the file "ScratchSourceCode1.2.1.image" onto the Scratch application.

The Squeak programming environment will start up, allowing you to view and modify the Scratch source code.


How to create a new block (to make visible a command that already exists in Scratch):

- create a new change set:
    - click on the background to bring up the "World" menu
    - select "changes..."
    - select "create new change set..."
    - enter a name
    - accept changes

- create a new block by defining a command spec
        - in the System Browser select the class your new command block will address. Since the strech block will work with sprites, we'll choose their superclass:
                - Scratch Objects
                - ScratchSpriteMorph
        - On the "class" side look for "blockSpecs" (hint: his method shows up by default)
        - Read the instruction in the comment and edit in your new command spec:
            | blocks |
            blocks <- #(
                'looks'
                    ...
                    ('set streach to %n%'            -    setStretchTo: 100)
                    ...
        - accept it (alt-s) and type your name

- finalize and share
    - click on the background to bring up the "World" menu
    - select "changes..."
    - select "simple change sorter"
    - select the name you choose for your change set
    - right click and select "file out"

- test your block
    - click on the background to bring up the "World" menu
    - select "open..."
    - select "Scratch"
    - shift-click on the Extras button
    - select "save image in user mode"
    - select "yes"
    - the Scratch window will close

- open Scratch again by double-clicking scratch.exe

Now you will find a new <set streach to __%> block in the "Looks" category. Enjoy!

Offline

 

#15 2008-07-03 11:21:38

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

Re: Width and Heigth instead of Size

Cool! I was trying this because I noticed there were obsolete blur and stretch image effects I wanted to resurrect, but couldn't get it to work. Thanks!


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

Offline

 

#16 2008-09-01 09:01:44

Spenfen
Scratcher
Registered: 2008-07-24
Posts: 37

Re: Width and Heigth instead of Size

It would be very difficult to make, but i think that i agree. We need a way to strech a sprite. not http://scratch.mit.edu/forums/viewtopic.php?id=6802#req_message


The statement I am making right now is untrue. He he he he he...

Offline

 

#17 2008-09-01 16:06:58

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Width and Heigth instead of Size

I support it, but maybe they could be called "stretch X" and "stretch Y" or something and the size block could stay.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#18 2009-03-07 13:35:24

Mickey86
Scratcher
Registered: 2008-11-08
Posts: 15

Re: Width and Heigth instead of Size

Bring back Stretch!

Offline

 

#19 2009-03-07 15:18:21

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Width and Heigth instead of Size

Stretch is awesome


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#20 2009-03-07 15:37:05

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Width and Heigth instead of Size

Yeah, good idea. But this thread is ancient... (It was back when I was a young scratcher).

Offline

 

#21 2009-03-07 15:49:42

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Width and Heigth instead of Size

ssssttttrrrreeeettttcccchhhh    rrrruuuulllleeeessss!!!!


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#22 2009-03-10 18:34:22

Targethero
Scratcher
Registered: 2008-09-08
Posts: 1000+

Re: Width and Heigth instead of Size

Yes, that is a very good Idea! I can think of dozens of things that might be used for!


http://img97.imageshack.us/img97/3981/targethero2.png http://ls.gd/bo

Offline

 

#23 2009-03-11 07:01:30

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Width and Heigth instead of Size

that would be awesome


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#24 2009-03-17 18:58:15

FoxDur
Scratcher
Registered: 2008-07-07
Posts: 87

Re: Width and Heigth instead of Size

I agree!


Do you want an icon? Check out here. Bored? Do you want to animate something? Look here.

Offline

 

#25 2009-03-17 19:02:57

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Width and Heigth instead of Size

I agree.

If enough people agree they might put it in. It could be a easy way to make, say, health bars with out having to make lots of costumes.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

Board footer