Discuss Scratch
- slothyhugs256
-
Scratcher
100+ posts
Smooth Zoom in
Does anyone know how to make a smooth zooming in frame? Would like it to be smooth, but last about five seconds. I've seen operators used commonly to make games like clicker games more smooth, so could the same concept be applied for this?
- LEGOBEANO147_PRO
-
Scratcher
67 posts
Smooth Zoom in
You need to do this ↓
define Set size to (size)
repeat until <(size) = (round (size::looks))>
change size by (((size::looks) - (size)) / [10])
end
Last edited by LEGOBEANO147_PRO (Dec. 22, 2024 08:43:35)
- slothyhugs256
-
Scratcher
100+ posts
Smooth Zoom in
You need to do this ↓Thank you!define Set size to (size)
repeat until <(size)::my blocks = (round (size)::looks>
change size by (((size)::looks) - (size)) / [10])
end
- LEGOBEANO147_PRO
-
Scratcher
67 posts
Smooth Zoom in
You need to do this ↓Thank you!define Set size to (size)
repeat until <(size)::my blocks = (round (size)::looks>
change size by (((size)::looks) - (size)) / [10])
end
Sorry, there was an error in the scratchblocks. I’ve updated it now.
- slothyhugs256
-
Scratcher
100+ posts
Smooth Zoom in
OkYou need to do this ↓Thank you!define Set size to (size)
repeat until <(size)::my blocks = (round (size)::looks>
change size by (((size)::looks) - (size)) / [10])
end
Sorry, there was an error in the scratchblocks. I’ve updated it now.
- slothyhugs256
-
Scratcher
100+ posts
Smooth Zoom in
OkYou need to do this ↓Thank you!define Set size to (size)
repeat until <(size)::my blocks = (round (size)::looks>
change size by (((size)::looks) - (size)) / [10])
end
Sorry, there was an error in the scratchblocks. I’ve updated it now.
It didn't work. Maybe I made a mistake in the code?
define Set size to (size)
<[size] = [150]> --I couldn't get the original code
change size by (((size) - (size)) / (10))
- slothyhugs256
-
Scratcher
100+ posts
Smooth Zoom in
I did repeat until it, just I don't know how to work scratchblocksOkYou need to do this ↓Thank you!define Set size to (size)
repeat until <(size)::my blocks = (round (size)::looks>
change size by (((size)::looks) - (size)) / [10])
end
Sorry, there was an error in the scratchblocks. I’ve updated it now.
It didn't work. Maybe I made a mistake in the code?define Set size to (size)
<[size] = [150]> --I couldn't get the original code
change size by (((size) - (size)) / (10))
- LEGOBEANO147_PRO
-
Scratcher
67 posts
Smooth Zoom in
I made a mistake in the scratchblocks. It should be like this. I think it should work now, however, I have had some problems with code like this recently.
define Set size to (size)
repeat until <(size) = (round (size::looks))>
change size by (((size::looks) - (size)) / [10])
end
Last edited by LEGOBEANO147_PRO (Dec. 22, 2024 11:36:45)
- LEGOBEANO147_PRO
-
Scratcher
67 posts
Smooth Zoom in
Wait a second, I’ve found out what’s wrong. It should be:
Instead of
((size::myblocks) - (size::looks))
Instead of
((size::looks) - (size::myblocks)
Last edited by LEGOBEANO147_PRO (Dec. 22, 2024 11:43:59)
- slothyhugs256
-
Scratcher
100+ posts
Smooth Zoom in
Wait a second, I’ve found out what’s wrong. It should be:Thanks((size) - (size::looks))
Instead of((size::looks) - (size))
- LEGOBEANO147_PRO
-
Scratcher
67 posts
Smooth Zoom in
I can’t use scratchblocks lol. They look the same. Baisically switch the size(looks) with size(myblocks).
- CoderPro7915
-
Scratcher
12 posts
Smooth Zoom in
Here's a simple zoom-in effect that doesn't require much work:
You can change the size change (The first input) and the speed (the second input) to make it to your desire
change size by (((150) - (size)) / (4))
You can change the size change (The first input) and the speed (the second input) to make it to your desire
Last edited by CoderPro7915 (Sept. 24, 2025 19:02:56)
- Matthobro120
-
Scratcher
80 posts
Smooth Zoom in
To add onto CoderPro915, the first input is the goal size, and the second is 1/x(x is input) of the way there, so if it's 4, then it reaches 25% of goal from current size.
- robloxsubominpc12345
-
Scratcher
1 post
Smooth Zoom in
??? what are you makeing scrachers?
are you doing zoom
are you doing zoom
Last edited by robloxsubominpc12345 (Jan. 8, 2026 17:12:42)
- Blobfish_Industries
-
Scratcher
100+ posts
Smooth Zoom in
??? what are you makeing scrachers?
What is the purpose of this message?
- Zebras-Are-Yumz
-
Scratcher
7 posts
Smooth Zoom in
I made a mistake in the scratchblocks. It should be like this. I think it should work now, however, I have had some problems with code like this recently.You don't need a repeat until block, you can just run the block in a forever loop:define Set size to (size)
repeat until <(size) = (round (size::looks))>
change size by (((size::looks) - (size)) / [10])
end
when green flag clicked(It can have other code in it)
forever
Set size to (Target Size).
end
Last edited by Zebras-Are-Yumz (Dec. 14, 2025 06:50:15)
- qwertyuiop238123
-
Scratcher
1 post
Smooth Zoom in
You need to do this ↓Its amazing!!!define Set size to (size)
repeat until <(size) = (round (size::looks))>
change size by (((size::looks) - (size)) / [10])
end