Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » scrolling platformer physics problem
- SirRealScratcher
-
Scratcher
3 posts
scrolling platformer physics problem
https://scratch.mit.edu/projects/923002824/
Every block in the project has a unique position. When ‘world move’ is broadcasted, each block's position is set to its usual place minus ‘X enderman’ and ‘Y enderman’. There are a set of 4 blocks I use in the enderman sprite to scroll the background.
Every block in the project has a unique position. When ‘world move’ is broadcasted, each block's position is set to its usual place minus ‘X enderman’ and ‘Y enderman’. There are a set of 4 blocks I use in the enderman sprite to scroll the background.
change [Enderman X v] by (x position)When I leave these 4 blocks out, the platformer collision I use works but the game doesn't scroll. However, when I do add them in, the physics start breaking. How do I code the physics to actually work with the scrolling?
change [Enderman Y v] by (y position)
go to x: (0) y: (0)
broadcast [World Move v]
Last edited by SirRealScratcher (Nov. 20, 2023 17:46:39)
- Discussion Forums
- » Help with Scripts
-
» scrolling platformer physics problem


