Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I am trying to make a scrolling platformer
- Fiveweeks
-
69 posts
I am trying to make a scrolling platformer
I had no experience with scrolling platformers, so I quickly created a platforming script, and made variables
(lower case are for this sprite only, capitals are global)
x, y for the player and platform, and CAMERA X, CAMERA Y.
I set CAMERA X and CAMERA Y to x, y, and I made the position script [go to x: ((x)-(CAMERA X)) y: ((x)-(CAMERA Y)), for both the player and platform, and made the platform clone itself, making this scrolling system.
I need help with:
-Smoother camera movement
(The camera seems to snap to the ground, I want the camera to follow the player instead)
-Infinite platformer
(Scratch has the 300 clone limit, so clones that are out of the camera range I want to delete, but will clone again if the camera moves back in range.)
Help will be greatly appreciated, thanks!
(lower case are for this sprite only, capitals are global)
x, y for the player and platform, and CAMERA X, CAMERA Y.
I set CAMERA X and CAMERA Y to x, y, and I made the position script [go to x: ((x)-(CAMERA X)) y: ((x)-(CAMERA Y)), for both the player and platform, and made the platform clone itself, making this scrolling system.
I need help with:
-Smoother camera movement
(The camera seems to snap to the ground, I want the camera to follow the player instead)
-Infinite platformer
(Scratch has the 300 clone limit, so clones that are out of the camera range I want to delete, but will clone again if the camera moves back in range.)
Help will be greatly appreciated, thanks!
- cIoudyness
-
500+ posts
I am trying to make a scrolling platformer
probably follow griffpatch's scrolling platformer tutorial, which will tell you everything you really want to know. also, i think deleting and recloning would be a pain, so maybe just have, say, ten general clones that switch to different costumes depending on where you are in the map
- Yusei-Fudo
-
1000+ posts
I am trying to make a scrolling platformer
Would you like to share your project?
Or take a look at this one I made: https://turbowarp.org/544041514
It's a little glitchy, but I'm planning on fixing it soon.
Or take a look at this one I made: https://turbowarp.org/544041514
It's a little glitchy, but I'm planning on fixing it soon.
- Fiveweeks
-
69 posts
I am trying to make a scrolling platformer
Last edited by Fiveweeks (June 25, 2021 18:24:03)
- Yusei-Fudo
-
1000+ posts
I am trying to make a scrolling platformer
For Camera Movements
Instead of:

Do this instead:

Platformer Physics Script
I changed everything after your x movements:

Let me know if you need anything else.
Instead of:

Do this instead:

Platformer Physics Script
I changed everything after your x movements:

Let me know if you need anything else.
- Discussion Forums
- » Help with Scripts
-
» I am trying to make a scrolling platformer