Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you stretch a sprite?
- IDPFera
-
Scratcher
100+ posts
How do you stretch a sprite?
I'm making a new 3D engine for my new game. I need to figure out how to stretch a sprite (Or more specifically, it's clones) in game, without changing the costumes. Is there a way to do so?
When I mean stretch, I mean make it larger on the X axis but not the Y axis, or vice versa.
When I mean stretch, I mean make it larger on the X axis but not the Y axis, or vice versa.
- Scratch_Mapping
-
Scratcher
100+ posts
How do you stretch a sprite?
You can't. They were removed.
change stretch by () ::looks
set stretch to () % :: looks
Last edited by Scratch_Mapping (Nov. 15, 2016 20:05:41)
- IDPFera
-
Scratcher
100+ posts
How do you stretch a sprite?
You can't. They were removed.change stretch by () ::looks
set stretch to () % :: looks
Is there a way to do so WITHOUT those blocks?
- Scratch_Mapping
-
Scratcher
100+ posts
How do you stretch a sprite?
These are supposed to be used on some projects, but they do not work anymoreYou can't. They were removed.change stretch by () ::looks
set stretch to () % :: looks
Is there a way to do so WITHOUT those blocks?

- IDPFera
-
Scratcher
100+ posts
How do you stretch a sprite?
These are supposed to be used on some projects, but they do not work anymoreYou can't. They were removed.change stretch by () ::looks
set stretch to () % :: looks
Is there a way to do so WITHOUT those blocks?
So is there a way to get the same effect without those blocks?
- IDPFera
-
Scratcher
100+ posts
How do you stretch a sprite?
Just scale them
How do I scale a sprite? Does it only affect it's size on one axis, because if it's just the same as changing the size, that's not what I need.
- cs395875
-
Scratcher
100+ posts
How do you stretch a sprite?
Or successfully lobby to add the stretch blocks on scratch.
- gtoal
-
Scratcher
1000+ posts
How do you stretch a sprite?
the only way is to reduce the sprite to thin strips and scale the strips. More effort than it is worth, especially with the scratch feature/restriction/bug about minimum width of a scaled sprite. (If that doesn't mean anything to you now, it will after you've played with this stuff)
- amylaser
-
Scratcher
500+ posts
How do you stretch a sprite?
But how do I scale them?
Well, like others have said, you unfortunately can't (but hey, why not suggest it? Dunno why they removed it…
Stretching is so useful). Unless you manually edit the costumes, break the sprite into strips (as gtoal said), or use mods, which aren't officially supported. Yeah… This is why most 3D projects tend to use pen.Last edited by amylaser (Nov. 15, 2016 23:01:47)
- MyRimag
-
Scratcher
53 posts
How do you stretch a sprite?
Meanwhile in 1.4….
when green flag clicked::control2.0……
forever
stretch (1)::looks
end
when green flag clicked
forever
undefined (1)
end
- VintageAura
-
Scratcher
100+ posts
How do you stretch a sprite?
Yes. Also, check the post date before you necropost and make your own topic
The reason why you shouldn't necropost is because the people mentioning it have probably already figured it out or forgotten about it.
The reason why you shouldn't necropost is because the people mentioning it have probably already figured it out or forgotten about it.
- danger695
-
Scratcher
100+ posts
How do you stretch a sprite?
Why did Scratch have to remove the stretch block?
when green flag clicked
forever
go to [ random position]
end
- PoIygon
-
Scratcher
1000+ posts
How do you stretch a sprite?
Why did Scratch have to remove the stretch block?when green flag clicked
forever
go to [ random position]
end
Yes. Also, check the post date before you necropost and make your own topic
The reason why you shouldn't necropost is because the people mentioning it have probably already figured it out or forgotten about it.
- danger695
-
Scratcher
100+ posts
How do you stretch a sprite?
Yes, I am creating a game that uses tesla coils and I was thinking of a way to make it stretch from one tesla to the other, despite the fact that the player decides where the teslas go.
when green flag clicked
say [:( no more stretch block] for (2) secs
Last edited by danger695 (Jan. 17, 2021 16:52:46)
- danger695
-
Scratcher
100+ posts
How do you stretch a sprite?
I made a very simple version, but the problem is the width changes too: https://scratch.mit.edu/projects/482617765/
- franklynbensley
-
Scratcher
4 posts
How do you stretch a sprite?
I made a very simple version, but the problem is the width changes too: https://scratch.mit.edu/projects/482617765/The page doesn't load on scratch, but I went on forkphorus and it doesn't work. The only thing it does is that it points towards the mouse-pointer.
- science_raja
-
Scratcher
28 posts
How do you stretch a sprite?
Make costumes i guess of an animation of it stretching
- Discussion Forums
- » Help with Scripts
-
» How do you stretch a sprite?