Discuss Scratch

YumCakeAndPie
Scratcher
7 posts

How do I make a scrolling background?

Hello! I wonder how do I make a scrolling background but smoothly
Thanks!







Last edited by YumCakeAndPie (Dec. 15, 2021 19:15:21)

YumCakeAndPie
Scratcher
7 posts

How do I make a scrolling background?

Somebody?
JustAContentCreator
Scratcher
33 posts

How do I make a scrolling background?

WARNING: THIS MIGHT NOT WORK
Make two variables called scrollX and scrollY
so the character you move will have this code:
when green flag clicked
forever
change [ scrollX] by ((x position) * (-1))
change [ scrollX] by ((y position) * (-1))
go to x: (0) y: (0)
end

So then in everything else around him like decorations, put this code in:

when green flag clicked
forever
go to x: (scrollX) y: (scrollY)
end

If that doesn't work here is a video with the movement and prop that is compatible i got it from: https://www.youtube.com/watch?v=m3kA7ePjiDA
Game i used it in: https://scratch.mit.edu/projects/586107869/

Last edited by JustAContentCreator (Dec. 15, 2021 21:51:11)

YumCakeAndPie
Scratcher
7 posts

How do I make a scrolling background?

thanks
YumCakeAndPie
Scratcher
7 posts

How do I make a scrolling background?

it worked

Powered by DjangoBB