
this is the parallax code and basically
X is how much you want the mouse X to affect the sprite (Same thing with Y)
X slide is how much it divided by (How slippery it feels) (Same thing with Y slide)
Now the extra X and Y makes it so any value I set it as will add it to the overall position

These are the settings I use but you can change the X and Y values depending on how much you want it to move.
Lever Y will make it so whatever that value is it will add it to the overall position of the sprite

This is the actual code that makes the lever move.
The wait until and repeat until blocks are self explanatory
so the two if then blocks are how far the lever can go
set lever Y to mouse y * 7 is just setting the lever Y to the mouse's position *7

















11 comments