Discuss Scratch

LTiger27
Scratcher
1 post

How do I make it so that whenever I make a background sprite change, it keeps a parallax effect?

I cant keep a parallax effect whenever I change the background, the movement will just stop Plz help.


this is the code I am using so far:


whenclickedforevergotox:VariableX/40y:VariableY/40

whenIreceiveChange backgroundswitchcostumeto (join [MountainsScene#)]

Last edited by LTiger27 (May 20, 2022 17:39:55)

legendary34678
Scratcher
1000+ posts

How do I make it so that whenever I make a background sprite change, it keeps a parallax effect?

In order to have a parallax effect, I'm pretty sure you have to do something like this:

forevergotox:mousex/5y:mousey/5

Where 5 is a number that can be changed. Changing the costume should not affect it at all.

I hope this helped!

Powered by DjangoBB