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

#1 2010-04-11 09:52:49

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Stretch

what is the instance code for [change stretch by ()]


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#2 2010-04-11 10:05:40

climber59
Scratcher
Registered: 2009-12-15
Posts: 100+

Re: Stretch

The name is changeStretchBy:
The code is
changeStretchBy: t1
    | t2 |
    t2 _ 100.0 * scalePoint x / scalePoint y.
    self setStretchTo: t2 + t1


Check out my projects if you have a chance.

Offline

 

#3 2010-04-11 13:07:52

rocket101
Scratcher
Registered: 2009-08-21
Posts: 500+

Re: Stretch

If you are on a macintosh, use this:
('change stretch by %n'                -    changeStretchBy:)
If you are on a PC, use this
('change stretch by %n' #- #changeStretchBy:)

Offline

 

#4 2010-04-12 17:21:16

AmoebaMan
Scratcher
Registered: 2009-01-26
Posts: 500+

Re: Stretch

you can find the entire block spec in the obsolete block specs section.  and the coding is already in scratch.


http://i942.photobucket.com/albums/ad269/RyanScathe/AmoebaMan.png

Offline

 

#5 2011-10-11 19:35:52

weegeeissparta
Scratcher
Registered: 2011-09-03
Posts: 500+

Re: Stretch

How Do U Do That?


"DAD, MOM HAS DEAD!" -Henry Freeman

Offline

 

#6 2011-10-11 19:44:34

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Stretch

weegeeissparta wrote:

How Do U Do That?

Weegeeissparta, please look at the age before posting on a thread.  This is a very old thread that does not need posting on.  Posting on very old threads is considered "necroposting" and is strongly discouraged by the community.

Offline

 

#7 2011-10-11 23:07:36

SheppardProductions
Scratcher
Registered: 2011-08-14
Posts: 100+

Re: Stretch

Greenatic wrote:

weegeeissparta wrote:

How Do U Do That?

Weegeeissparta, please look at the age before posting on a thread.  This is a very old thread that does not need posting on.  Posting on very old threads is considered "necroposting" and is strongly discouraged by the community.

Why would it be discouraged? Oh dang, does the community hate me now?

Offline

 

#8 2011-10-12 18:32:05

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Stretch

SheppardProductions wrote:

Greenatic wrote:

weegeeissparta wrote:

How Do U Do That?

Weegeeissparta, please look at the age before posting on a thread.  This is a very old thread that does not need posting on.  Posting on very old threads is considered "necroposting" and is strongly discouraged by the community.

Why would it be discouraged? Oh dang, does the community hate me now?

Hate's an overly strong word.  People just prefer that very old topics don't get shoved to the top because almost always the problem is already solved, forgotten, or irrelevant.  (especially the second one)

Offline

 

Board footer