Discuss Scratch

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?
whenclickedsaythnx! :Dfor2secs
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.
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:
whenclickedshowsetsizetoyouchoosehere%set scrollxto0
This will be reseting the position when you start
5) Make this scripts to the script you started:
foreversetxtoscrollx
This will set the position of the land when you are moving
9) Draw your character
10) Make this script to the character:
whenclickedifkeyright arrow pressed?thenchange scrollxbythespeedyouchooseifkey left arrowpressed?thenchange scrollxbythenegativespeedyouchoose

If you want to add more platforms duplicate the land and change the second one like this:

foreversetxtoscrollx+480

and the third must be like:

foreversetxtoscrollx+960


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???

zobandzeff wrote:

try and find a scrolling platformer tutorial
yea just watch a tutorial
Colin_wisdom
Scratcher
2 posts

how to make a scrolling platformer???

aydadaylan wrote:

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:
whenclickedshowsetsizetoyouchoosehere%set scrollxto0
This will be reseting the position when you start
5) Make this scripts to the script you started:
foreversetxtoscrollx
This will set the position of the land when you are moving
9) Draw your character
10) Make this script to the character:
whenclickedifkeyright arrow pressed?thenchange scrollxbythespeedyouchooseifkey left arrowpressed?thenchange scrollxbythenegativespeedyouchoose

If you want to add more platforms duplicate the land and change the second one like this:

foreversetxtoscrollx+480

and the third must be like:

foreversetxtoscrollx+960


I hope the scripts work, thanks for looking this
THx alot
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???

Smarty8347 wrote:

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
definethanksforreading
SRU1928
Scratcher
2 posts

how to make a scrolling platformer???

Colin_wisdom wrote:

aydadaylan wrote:

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:
whenclickedshowsetsizetoyouchoosehere%set scrollxto0
This will be reseting the position when you start
5) Make this scripts to the script you started:
foreversetxtoscrollx
This will set the position of the land when you are moving
9) Draw your character
10) Make this script to the character:
whenclickedifkeyright arrow pressed?thenchange scrollxbythespeedyouchooseifkey left arrowpressed?thenchange scrollxbythenegativespeedyouchoose

If you want to add more platforms duplicate the land and change the second one like this:

foreversetxtoscrollx+480

and the third must be like:

foreversetxtoscrollx+960


I hope the scripts work, thanks for looking this
THx alot
THANKS YOU
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???

whenclickedforeverplaysound eowiuhrwuirpq98y43 098yt 08
dishkacodesbest
Scratcher
1 post

how to make a scrolling platformer???

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
--garbage-animator--
Scratcher
4 posts

how to make a scrolling platformer???

gilbert_given_189 wrote:

Smarty8347 wrote:

Please click the button close topic below.
Why though?
paper mario origami kimg? i like that game i finished i was aking it but i cant make it scrolling and 3d
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
Fighthill
Scratcher
22 posts

how to make a scrolling platformer???

grandhallhi wrote:

HI! I think i'm going to try making a scrolling platformer, but i don't know HOW , does anyone know?
whenclickedsaythnx! :Dfor2secs
Ok, I can show you but there will be lots of code! I will talk about 2 sprites. Those are the only sprites.
Make a platforms sprite. Do this code on the platforms sprite.
whenclickedswitchcostumeto Blanksetsizeto1000%switchcostumeto Level 1
Blank should be a costume that has nothing.
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.
whenclickedforeverifkey right arrowpressed?thenchangexby-8ifkey left arrowpressed?thenchangexby8
Put this in the platforms sprite too. Put the same numbers that I put.
whenclickedforeverifkey up arrowpressed?andtouching Player?thenrepeat8changeyby-8repeat8changeyby8

Powered by DjangoBB