Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Scrolling Borders
- Melikescratching
-
Scratcher
5 posts
Scrolling Borders
I'm building a scrolling game, and I can't seem to get it so the scrolling has limits where the player will move instead of the background. Anybody know how to do this?
- GamesReinvented
-
New Scratcher
100+ posts
Scrolling Borders
Simply just “clamp” the (if you have one) the camera variable, which just prevents from going too high, or too low, and since most scrolling scripts are similar to this:
Edit: Providing a project link would help us and find out a way to make a script compatible for your project.
go to x:((Player X) - (Cam X)) y: ((Player Y) - (Cam Y))the player will move on screen rather than the ground.
Edit: Providing a project link would help us and find out a way to make a script compatible for your project.
Last edited by GamesReinvented (Sept. 30, 2024 20:21:55)
- Melikescratching
-
Scratcher
5 posts
Scrolling Borders
I am multiplying my Scroll X to make the stage bigger. How can I make them compatible
- Discussion Forums
- » Help with Scripts
-
» Scrolling Borders