Discuss Scratch

VeryFamus
Scratcher
1000+ posts

Add a “stretch” effect

NOTE: before going off and saying “oh this can be done in costumes so this is bad” know that the costume version is choppy and time-consuming and causes lag. And besides a lot of blocks can be done in costumes as well, like every effect, size, show, hide. I had to add this warning because people kept on saying “this can be done with costumes so no support”

And another NOTE: please don’t take into account that this used to exist. If it was removed, then it would be beneficial to have it back.

So, this stretch effect could have two variants: side-stretch and wide-stretch.

Side-stretch:
Squishes a sprite model inward. It moves the left and right inward and the top and bottom stretch outward giving the sprite a “stretch” effect

Wide-stretch:
Squishes a model inward. It moves the top and bottom inward And the left and right outward giving the sprite a “stretch” effect

Wide stretch would be the positive value of the effect, as it does stretch outward, and side stretch would be the negative value, as it stretches inward. The outward/inward terms are based on the left/right sides of the sprite.

Revamped OP

So, this suggestion is to add a “stretch” effect into the effects palette. Stretch is when two sides are stretched outward and the sprite gets elongated in appearance and shape. When I mentioned “Side-stretch” and “Wide-stretch” I meant over and below 0 on the stretch. 0 Would be default stretch, and if it went above 0, the left and right sides would stretch outward, while the upper and lower sides would be squished to the center, while below 0 would be the opposite, the left-right sides stretching inward and the upper-lower sides stretching outward. Seems pretty straightforward, eh? This is not the historic stretch, though it has almost the same effect. Stretch was it’s own value with it’s own reporter, and wasn’t an effect, with 100 being default rather than 0.

Mock-up using costumes: https://scratch.mit.edu/projects/636391279

Reply with add-ons to this that could be useful, or what you think of this suggestion! Please alert me if there is a duplicate!

What the blocks would look like:
change [stretch v] effect by (25)
set [stretch v] effect to (0)

Last edited by VeryFamus (Jan. 30, 2022 21:01:30)


the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
dogeiscut
Scratcher
500+ posts

Add a “stretch” effect

+Support!
However, couldn't this be simpler?
I suggest these blocks instead:
set stretch to () % :: looks

change stretch by () :: looks

peanut
VeryFamus
Scratcher
1000+ posts

Add a “stretch” effect

dogeiscut wrote:

+Support!
However, couldn't this be simpler?
I suggest these blocks instead:
set stretch to () % :: looks

change stretch by () :: looks

I see how that could be good. A negative value could stretch it inward left/right, and a positive value could stretch it inward up/down.
set [Stretch] effect to (-20)              
change [Stretch] effect by (25)
next backdrop
The first block would render it negative, then the second would render it positive.
Good Idea!

Last edited by VeryFamus (Oct. 16, 2021 14:10:52)


the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
modesties
Scratcher
100+ posts

Add a “stretch” effect

set [stretch v] effect to ()

change [stretch v] effect by ()

([stretch v] effect ::looks)

set [shrink v] effect to () //inverse of stretch

change [shrink v] effect by ()

([shrink v] effect ::looks)

Last edited by modesties (Oct. 16, 2021 22:12:17)


My other accounts: @fireflyhero @selfexplanatory @medians
add life to [list v] ::list

(sadness::sensing)

set sadness to () ::sensing

change sadness by () ::sensing

<sadness is ()? ::sensing>// workaround:

<(sadness ::sensing) = []>
Fun fact: The first game I ever hated was made by EA years ago. Not surprising.
TurtleLegos
Scratcher
1000+ posts

Add a “stretch” effect

No support, you can do this with costumes.

BE DRY, MOIST IS TOO MOIST

hey im back! march 3 2024
dhuls
Scratcher
1000+ posts

Add a “stretch” effect

TurtleLegos wrote:

No support, you can do this with costumes.
which is overly complex.
VeryFamus
Scratcher
1000+ posts

Add a “stretch” effect

TurtleLegos wrote:

No support, you can do this with costumes.

Yes, but the variables would simplify it, and give smoother conversion, as some people don’t want to make 100 or more costumes for each stretch.

the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
DaBoi001
Scratcher
1000+ posts

Add a “stretch” effect

VeryFamus wrote:

TurtleLegos wrote:

No support, you can do this with costumes.

Yes, but the variables would simplify it, and give smoother conversion, as some people don’t want to make 100 or more costumes for each stretch.
I would have agreed with the non-supporter, but i do think that smoother conversion is better.

Last Edited by kaj (Tomorrow 00:00:00)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
around 2300 posts

I don't use Scratch all that much. I only hop on the forums and stuff. I make stuff on Unity and 3D model now.

“All right, I've been thinking. When life gives you lemons, don't make lemonade. Make life take the lemons back! GET MAD! I DON'T WANT YOUR * LEMONS! What am I supposed to do with these? Demand to see life's manager! Make life rue the day it thought it could give CAVE JOHNSON lemons! Do you know who I am? I'm the man who's gonna BURN YOUR HOUSE DOWN! With the LEMONS! I'm gonna get my engineers to invent a combustible lemon that burns your house down!”
- Cave Johnson
hiPeeps124816
Scratcher
500+ posts

Add a “stretch” effect

Support, because stretch is just as valuable as fisheye and whirl

Generation 7: First time you see this? Copy and paste it on top of your signature in the forums and increase generation by 1.

thethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethethe
Specs -
OS: macOS 11.6.4
Browser: Varies, usually Safari 15.3 or Opera GX 83 or Firefox 96
Computer: Late 2013 MacBook Pro 2.4GHz Dual Core Intel Core i5
highlight and shift down arrow




;
dogeiscut
Scratcher
500+ posts

Add a “stretch” effect

dhuls wrote:

TurtleLegos wrote:

No support, you can do this with costumes.
which is overly complex.
And you can change the size of a sprite with costumes, your point?

peanut
IntelArt
Scratcher
15 posts

Add a “stretch” effect

why do you call non support “hate”? no support btw

I make art and parallaxes.

(follow me for art!)
flafs-
Scratcher
48 posts

Add a “stretch” effect

IntelArt wrote:

why do you call non support “hate”?
because, in simple words, if you don't support something it's often associated with disliking/hating said thing. sometimes, when people say “no support”, they're basically saying they hate it but with the words in pretty packaging.
anyways i do support this because doing it with costumes is tedious and very time consuming, and it's frustrating when you don't get the wanted effect. it would be much easier with blocks because of smoother and more consistent conversion

@callmecoffee

casually vibing on an alt
AwezomeXD
Scratcher
100+ posts

Add a “stretch” effect

dogeiscut wrote:

dhuls wrote:

TurtleLegos wrote:

No support, you can do this with costumes.
which is overly complex.
And you can change the size of a sprite with costumes, your point?
Using too many costumes can cause a project to get laggier and less organized- besides, controlling the stretch with a variable would make the animations much smoother anyways.

Hooplah
No-Sider
Scratcher
100+ posts

Add a “stretch” effect

Isnt there like alot of dupes for this? I cant find the oldest one, but searching on ocular shows alot of results for people suggesting the stretch block:

https://ocular.jeffalo.net/search?q=stretch&sort=relevance

This is a signature, very interesting yes yes
VeryFamus
Scratcher
1000+ posts

Add a “stretch” effect

No-Sider wrote:

Isnt there like alot of dupes for this? I cant find the oldest one, but searching on ocular shows alot of results for people suggesting the stretch block:

https://ocular.jeffalo.net/search?q=stretch&sort=relevance

So, the one shown is a very different thing, he is talking about Stretch being a specific category with it’s won events, but I am talking about it being another effect in the effect palette.

the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
han614698
Scratcher
1000+ posts

Add a “stretch” effect

modesties wrote:

set [stretch v] effect to ()

change [stretch v] effect by ()

([stretch v] effect ::looks)

set [shrink v] effect to () //inverse of stretch

change [shrink v] effect by ()

([shrink v] effect ::looks)
How about negative numbers? There's no reason for a shrink effect…

<Scratch Wikian | Forum Helper | Almost to 6000 Posts! | Please be aware I may mistype things, my wrist is fractured>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




medians
Scratcher
1000+ posts

Add a “stretch” effect

han614698 wrote:

modesties wrote:

set [stretch v] effect to ()

change [stretch v] effect by ()

([stretch v] effect ::looks)

set [shrink v] effect to () //inverse of stretch

change [shrink v] effect by ()

([shrink v] effect ::looks)
How about negative numbers? There's no reason for a shrink effect…
same logic for next costume/backdrop with + 1.

NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
VeryFamus
Scratcher
1000+ posts

Add a “stretch” effect

Bump

the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
VeryFamus
Scratcher
1000+ posts

Add a “stretch” effect

(Bump :: Motion)

Last edited by VeryFamus (Oct. 24, 2021 15:34:23)


the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
BlackBottleOfSadness
Scratcher
4 posts

Add a “stretch” effect

full support

Powered by DjangoBB