Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » scrolling background speed up problem
- Ym2612
-
Scratcher
100+ posts
scrolling background speed up problem
In the game I'm making, when the boss comes the background scrolls faster, but one of the two variables (the clone spawn rate) can't catch up to make a smooth speed-up. What code can I use to fix this problem?
- Jareddddddd
-
Scratcher
1000+ posts
scrolling background speed up problem
so for scrolling backgrounds, I usually have 2 copies of the background. Simply move these in accordance to the scroll rate, and move them when they are fully offscreen
Assuming the background sprites are 480x360, this boundary would be +- 480 on the X axis, and +-360 on the Y axis
Assuming the background sprites are 480x360, this boundary would be +- 480 on the X axis, and +-360 on the Y axis
- _turtle64
-
Scratcher
100+ posts
scrolling background speed up problem
I might be able to help if I see your code. Can you post a link to your project?
- Ym2612
-
Scratcher
100+ posts
scrolling background speed up problem
I might be able to help if I see your code. Can you post a link to your project?
https://scratch.mit.edu/projects/1019288224/
the speed-up code is in the Wall sprite and the ALERT broadcast is in the 4COR sprite
Last edited by Ym2612 (May 16, 2024 16:41:43)
- Discussion Forums
- » Help with Scripts
-
» scrolling background speed up problem