Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Script for background transitions!
- roesyfish
-
Scratcher
7 posts
Script for background transitions!
Hello everyone!
I'm developing a game at the moment and would appreciate some help.
I was thinking of making a transition of one backdrop to another using the classic comic black circle zoom in and out. However, I can't really work it out. Hopefully you guys can help! Thank you!
If not, I would really appreciate a super smooth transition.
I'm developing a game at the moment and would appreciate some help.
I was thinking of making a transition of one backdrop to another using the classic comic black circle zoom in and out. However, I can't really work it out. Hopefully you guys can help! Thank you!
If not, I would really appreciate a super smooth transition.
Last edited by roesyfish (Feb. 21, 2026 10:09:23)
- tajibear13
-
Scratcher
6 posts
Script for background transitions!
I have a project (unreleased) that has that exact effect. In the code it has 2 costumes one that is huge with a hole in the middle, and one that is 1 pixel big labeled “zoom” and “small” respectfully. Here's the code;
Hope that helped! By the way, if you want to change the size from 31 to a different number you might want to tinker around with the repeat.
when green flag clicked
show
go to x: (0) y: (0)
go to [front v] layer
set [glide v] to [1]
switch costume to [zoom v]
set size to (31) %
repeat (50)
switch costume to [small v]
change size by (glide)
change [glide v] by (1)
switch costume to [zoom v]
end
Hope that helped! By the way, if you want to change the size from 31 to a different number you might want to tinker around with the repeat.
- 4022201
-
Scratcher
10 posts
Script for background transitions!
Hello everyone!
I'm developing a game at the moment and would appreciate some help.
I was thinking of making a transition of one backdrop to another using the classic comic black circle zoom in and out. However, I can't really work it out. Hopefully you guys can help! Thank you!
If not, I would really appreciate a super smooth transition.
https://scratch.mit.edu/projects/1282005449/
edit: press space
Last edited by 4022201 (Feb. 21, 2026 15:03:36)
- roesyfish
-
Scratcher
7 posts
Script for background transitions!
@tajbear13 I tried the code but it stopped at a certain point and the screen never turned fully black. Maybe it's the costumes but I'm not very sure..
- Discussion Forums
- » Help with Scripts
-
» Script for background transitions!