Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a scrolling platformer???
- grandhallhi
-
Scratcher
28 posts
how to make a scrolling platformer???
HI! I think i'm going to try making a scrolling platformer, but i don't know HOW
, does anyone know?
, does anyone know?when green flag clicked
say [thnx! :D] for (2) secs
- zobandzeff
-
Scratcher
500+ posts
how to make a scrolling platformer???
try and find a scrolling platformer tutorial
- grandhallhi
-
Scratcher
28 posts
how to make a scrolling platformer???
i don't know…
i kinda want it in person.
i kinda want it in person.- aydadaylan
-
Scratcher
30 posts
how to make a scrolling platformer???
1) Select a background
2) Make a variable scrollx ( This will be indicating the position of the land)
3) Draw your land
4) Make this scripts for land:
5) Make this scripts to the script you started:
9) Draw your character
10) Make this script to the character:
If you want to add more platforms duplicate the land and change the second one like this:
and the third must be like:
I hope the scripts work, thanks for looking this


2) Make a variable scrollx ( This will be indicating the position of the land)
3) Draw your land
4) Make this scripts for land:
when green flag clickedThis will be reseting the position when you start
show
set size to (you choose here) %
set [ scrollx] to [0]
5) Make this scripts to the script you started:
foreverThis will set the position of the land when you are moving
set x to (scrollx)
end
9) Draw your character
10) Make this script to the character:
when green flag clicked
if <key [right arrow ] pressed?> then
change [ scrollx] by (the speed you choose)
end
if <key [ left arrow] pressed?> then
change [ scrollx] by (the negative speed you choose)
end
If you want to add more platforms duplicate the land and change the second one like this:
forever
set x to ((scrollx) + (480))
end
and the third must be like:
forever
set x to ((scrollx) + (960))
end
I hope the scripts work, thanks for looking this



Last edited by aydadaylan (June 5, 2020 15:14:58)
- aditya345621
-
Scratcher
2 posts
how to make a scrolling platformer???
No can you make the full version of the mobile scrolling platformer
- fundaye
-
Scratcher
13 posts
how to make a scrolling platformer???
Search on Youtube 'How to make a scrolling platformer in scratch'
- fundaye
-
Scratcher
13 posts
how to make a scrolling platformer???
try and find a scrolling platformer tutorialyea just watch a tutorial
- Colin_wisdom
-
Scratcher
2 posts
how to make a scrolling platformer???
1) Select a backgroundTHx alot
2) Make a variable scrollx ( This will be indicating the position of the land)
3) Draw your land
4) Make this scripts for land:when green flag clickedThis will be reseting the position when you start
show
set size to (you choose here) %
set [ scrollx] to [0]
5) Make this scripts to the script you started:foreverThis will set the position of the land when you are moving
set x to (scrollx)
end
9) Draw your character
10) Make this script to the character:when green flag clicked
if <key [right arrow ] pressed?> then
change [ scrollx] by (the speed you choose)
end
if <key [ left arrow] pressed?> then
change [ scrollx] by (the negative speed you choose)
end
If you want to add more platforms duplicate the land and change the second one like this:forever
set x to ((scrollx) + (480))
end
and the third must be like:forever
set x to ((scrollx) + (960))
end
I hope the scripts work, thanks for looking this
- Smarty8347
-
Scratcher
100+ posts
how to make a scrolling platformer???
Griffpatch has tutorials on youtube. Search “Griffpatch” on youtube. Please click the button close topic below.
- gilbert_given_189
-
Scratcher
1000+ posts
how to make a scrolling platformer???
Please click the button close topic below.Why though?
- CaEd-2010_
-
New Scratcher
1 post
how to make a scrolling platformer???
search up on google safari or bing whatever you have 'how to make a scrolling platformer
define thanks for reading
- SRU1928
-
Scratcher
2 posts
how to make a scrolling platformer???
THANKS YOU1) Select a backgroundTHx alot
2) Make a variable scrollx ( This will be indicating the position of the land)
3) Draw your land
4) Make this scripts for land:when green flag clickedThis will be reseting the position when you start
show
set size to (you choose here) %
set [ scrollx] to [0]
5) Make this scripts to the script you started:foreverThis will set the position of the land when you are moving
set x to (scrollx)
end
9) Draw your character
10) Make this script to the character:when green flag clicked
if <key [right arrow ] pressed?> then
change [ scrollx] by (the speed you choose)
end
if <key [ left arrow] pressed?> then
change [ scrollx] by (the negative speed you choose)
end
If you want to add more platforms duplicate the land and change the second one like this:forever
set x to ((scrollx) + (480))
end
and the third must be like:forever
set x to ((scrollx) + (960))
end
I hope the scripts work, thanks for looking this
- J2hub
-
Scratcher
3 posts
how to make a scrolling platformer???
Simple, take an ordinary platformer, add two new variables named player pos x and player pos y , then replace the move movement blocks with some thing like this: instead of if right arrow pressed change x by 10 do if right arrow pressed change player pos x by 10. To add in the scrolling component give your object sprite forever set x to (insert desired x position)-player pos x. you can do the same thing with player pos y to constantly move to the correct position.
- J2hub
-
Scratcher
3 posts
how to make a scrolling platformer???
for movement another thing you could do to refine your project is add blocks like ground check which will do this: move your player sprite down a bit, if its touching your ground sprite it moves you back up until you are not touching the ground. I would recommend making a custom block with run without screen refresh on just to make it instant and put this inside your movement infinity loop. you should also do this sort of thing for wall detection, it moves you the direction you are trying to move if you are touching your object sprite it moves you back.
- denglechi34
-
Scratcher
1 post
how to make a scrolling platformer???
when green flag clicked
forever
play sound [ eowiuhrwuirpq98y43 098yt 08]
end
- Ivans_Secr3t
-
Scratcher
1 post
how to make a scrolling platformer???
All you have to do is
1) Select a background
2) Make a variable scrollx ( This will be indicating the position of the land)
3) Draw your land
4) Make this scripts for land:
when
clicked
show
set
size
to
you
choose
here
%
set
scrollx
to
0
This will be reseting the position when you start
5) Make this scripts to the script you started:
forever
set
x
to
scrollx
This will set the position of the land when you are moving
9) Draw your character
10) Make this script to the character:
when
clicked
if
key
right arrow
pressed?
then
change
scrollx
by
the
speed
you
choose
if
key
left arrow
pressed?
then
change
scrollx
by
the
negative
speed
you
choose
If you want to add more platforms duplicate the land and change the second one like this:
forever
set
x
to
scrollx
+
480
and the third must be like:
forever
set
x
to
scrollx
+
960
I hope the scripts work, thanks for looking this
1) Select a background
2) Make a variable scrollx ( This will be indicating the position of the land)
3) Draw your land
4) Make this scripts for land:
when
clicked
show
set
size
to
you
choose
here
%
set
scrollx
to
0
This will be reseting the position when you start
5) Make this scripts to the script you started:
forever
set
x
to
scrollx
This will set the position of the land when you are moving
9) Draw your character
10) Make this script to the character:
when
clicked
if
key
right arrow
pressed?
then
change
scrollx
by
the
speed
you
choose
if
key
left arrow
pressed?
then
change
scrollx
by
the
negative
speed
you
choose
If you want to add more platforms duplicate the land and change the second one like this:
forever
set
x
to
scrollx
+
480
and the third must be like:
forever
set
x
to
scrollx
+
960
I hope the scripts work, thanks for looking this
- --garbage-animator--
-
Scratcher
4 posts
how to make a scrolling platformer???
paper mario origami kimg? i like that game i finished i was aking it but i cant make it scrolling and 3dPlease click the button close topic below.Why though?
- bsteichman
-
Scratcher
500+ posts
how to make a scrolling platformer???
make a big sprite with like 800x size make it move around when you press the arrow keys..
add physics and boom
add physics and boom
- Fighthill
-
Scratcher
22 posts
how to make a scrolling platformer???
HI! I think i'm going to try making a scrolling platformer, but i don't know HOWOk, I can show you but there will be lots of code! I will talk about 2 sprites. Those are the only sprites., does anyone know?
when green flag clicked
say [thnx! :D] for (2) secs
Make a platforms sprite. Do this code on the platforms sprite.
when green flag clickedBlank should be a costume that has nothing.
switch costume to [ Blank]
set size to (1000) %
switch costume to [ Level 1]
Level 1 should be your level. Make sure the platforms are super small in the costume because small it will be big in the screen.
Now do this code in the platforms sprite.
when green flag clickedPut this in the platforms sprite too. Put the same numbers that I put.
forever
if <key [ right arrow] pressed?> then
change x by (-8)
end
if <key [ left arrow] pressed?> then
change x by (8)
end
end
when green flag clicked
forever
if <<key [ up arrow] pressed?> and <touching [ Player] ?>> then
repeat (8)
change y by (-8)
end
repeat (8)
change y by (8)
end
end
- Discussion Forums
- » Help with Scripts
-
» how to make a scrolling platformer???


















, does anyone know?