Discuss Scratch

JaidenKaleTVY
Scratcher
1 post

How To make a Platformer Game?

How do I Make a platformer game? I watched videos of other ideas and it didn't work for me sometimes.
nowayoryesway
Scratcher
19 posts

How To make a Platformer Game?

JaidenKaleTVY wrote:

How do I Make a platformer game? I watched videos of other ideas and it didn't work for me sometimes.
I Will Help You For Sure!
1. Make you player sprite
2. make your level sprite
3. make your flag sprite (put it where the end of the platformer)
4. put these blocks in your player sprite
when green flag clicked
forever
if <key <<a> or <left arrow>> pressed?> then
move (-7)
switch costume to [ your player costume fasing left]
end
if <key <<d> or <right arrow>> pressed?> then
move (7)
switch costume to [ your player costume fasing right]
end
if <key [ space] pressed?> then
repeat (3)
change y (3)
end
repeat (3)
change y (-3)
end
end
end

define move (steps)
move (steps) steps
if <touching [ your level sprite] ?> then
move (0) steps
end

define change y (input)
change y by (input)
if <touching [ your level sprite] ?> then
change y by (0)
end
5. for level no blocks but here are blocks for your winning sprite
when green flag clicked
forever
if <touching [ your player sprite] ?> then
stop [ all]
end
end
if it dosen't work then just watch this grifpatch tutorial: https://www.youtube.com/watch?v=D16hTnDGweo&ab_channel=griffpatch

Last edited by nowayoryesway (Dec. 24, 2023 10:47:58)

nowayoryesway
Scratcher
19 posts

How To make a Platformer Game?

nowayoryesway wrote:

JaidenKaleTVY wrote:

How do I Make a platformer game? I watched videos of other ideas and it didn't work for me sometimes.
I Will Help You For Sure!
1. Make you player sprite
2. make your level sprite
3. make your flag sprite (put it where the end of the platformer)
4. put these blocks in your player sprite
when green flag clicked
forever
if <key <<a> or <left arrow>> pressed?> then
move (-7)
switch costume to [ your player costume fasing left]
end
if <key <<d> or <right arrow>> pressed?> then
move (7)
switch costume to [ your player costume fasing right]
end
if <key [ space] pressed?> then
repeat (3)
change y (3)
end
repeat (3)
change y (-3)
end
end
end

define move (steps)
move (steps) steps
if <touching [ your level sprite] ?> then
move (0) steps
end

define change y (input)
change y by (input)
if <touching [ your level sprite] ?> then
change y by (0)
end
5. for level no blocks but here are blocks for your winning sprite
when green flag clicked
forever
if <touching [ your player sprite] ?> then
stop [ all]
end
end
if it dosen't work then just watch this grifpatch tutorial: https://www.youtube.com/watch?v=D16hTnDGweo&ab_channel=griffpatch
if grifpatch tutor deosen't work then , uhh you will never make a platformer (i hope this tutor works) sorry
coleman3w07
New Scratcher
1 post

How To make a Platformer Game?

nowayoryesway wrote:

nowayoryesway wrote:

JaidenKaleTVY wrote:

How do I Make a platformer game? I watched videos of other ideas and it didn't work for me sometimes.
I Will Help You For Sure!
1. Make you player sprite
2. make your level sprite
3. make your flag sprite (put it where the end of the platformer)
4. put these blocks in your player sprite
when green flag clicked
forever
if <key <<a> or <left arrow>> pressed?> then
move (-7)
switch costume to [ your player costume fasing left]
end
if <key <<d> or <right arrow>> pressed?> then
move (7)
switch costume to [ your player costume fasing right]
end
if <key [ space] pressed?> then
repeat (3)
change y (3)
end
repeat (3)
change y (-3)
end
end
end

define move (steps)
move (steps) steps
if <touching [ your level sprite] ?> then
move (0) steps
end

define change y (input)
change y by (input)
if <touching [ your level sprite] ?> then
change y by (0)
end
5. for level no blocks but here are blocks for your winning sprite
when green flag clicked
forever
if <touching [ your player sprite] ?> then
stop [ all]
end
end
if it dosen't work then just watch this grifpatch tutorial: https://www.youtube.com/watch?v=D16hTnDGweo&ab_channel=griffpatch
if grifpatch tutor deosen't work then , uhh you will never make a platformer (i hope this tutor works) sorry
coca-cola456
Scratcher
7 posts

How To make a Platformer Game?

nowayoryesway wrote:

JaidenKaleTVY wrote:

How do I Make a platformer game? I watched videos of other ideas and it didn't work for me sometimes.
I Will Help You For Sure!
1. Make you player sprite
2. make your level sprite
3. make your flag sprite (put it where the end of the platformer)
4. put these blocks in your player sprite
when green flag clicked
forever
if <key <<a> or <left arrow>> pressed?> then
move (-7)
switch costume to [ your player costume fasing left]
end
if <key <<d> or <right arrow>> pressed?> then
move (7)
switch costume to [ your player costume fasing right]
end
if <key [ space] pressed?> then
repeat (3)
change y (3)
end
repeat (3)
change y (-3)
end
end
end

define move (steps)
move (steps) steps
if <touching [ your level sprite] ?> then
move (0) steps
end

define change y (input)
change y by (input)
if <touching [ your level sprite] ?> then
change y by (0)
end
5. for level no blocks but here are blocks for your winning sprite
when green flag clicked
forever
if <touching [ your player sprite] ?> then
stop [ all]
end
end
if it dosen't work then just watch this grifpatch tutorial: https://www.youtube.com/watch?v=D16hTnDGweo&ab_channel=griffpatch

But then how do u do the gravity part? I tried diff tutorials on scratch i just got more confused

Last edited by coca-cola456 (Dec. 24, 2023 14:10:31)

nowayoryesway
Scratcher
19 posts

How To make a Platformer Game?

coca-cola456 wrote:

nowayoryesway wrote:

JaidenKaleTVY wrote:

How do I Make a platformer game? I watched videos of other ideas and it didn't work for me sometimes.
I Will Help You For Sure!
1. Make you player sprite
2. make your level sprite
3. make your flag sprite (put it where the end of the platformer)
4. put these blocks in your player sprite
when green flag clicked
forever
if <key <<a> or <left arrow>> pressed?> then
move (-7)
switch costume to [ your player costume fasing left]
end
if <key <<d> or <right arrow>> pressed?> then
move (7)
switch costume to [ your player costume fasing right]
end
if <key [ space] pressed?> then
repeat (3)
change y (3)
end
repeat (3)
change y (-3)
end
end
end

define move (steps)
move (steps) steps
if <touching [ your level sprite] ?> then
move (0) steps
end

define change y (input)
change y by (input)
if <touching [ your level sprite] ?> then
change y by (0)
end
5. for level no blocks but here are blocks for your winning sprite
when green flag clicked
forever
if <touching [ your player sprite] ?> then
stop [ all]
end
end
if it dosen't work then just watch this grifpatch tutorial: https://www.youtube.com/watch?v=D16hTnDGweo&ab_channel=griffpatch

But then how do u do the gravity part? I tried diff tutorials on scratch i just got more confused

oops , there is a new one:
change y (4)

define change y (input)
if <touching [your level sprite] ?> then
change y by (0)
else
change y by (input)
end
there , a fixed one.
same thing with movement:
move (4)

define move (input)
if <touching [your level sprite] ?> then
move (0) steps
else
move (input) steps
end

Last edited by nowayoryesway (Dec. 24, 2023 15:04:25)

nowayoryesway
Scratcher
19 posts

How To make a Platformer Game?

<<<<<<<<<<i always help in any discusion>>>>>>>>>>

(((((((((((((((((((i am sure that you will follow me ))))))))))))))))))


Last edited by nowayoryesway (Dec. 24, 2023 15:10:18)

The_Purple_Frog
Scratcher
1 post

How To make a Platformer Game?

The only thing is, I tried that, and it didn't work. LIke the guy just wouldn't move or jump
cosmosaura
Scratch Team
1000+ posts

How To make a Platformer Game?

Topic closed due to necroposting.

Powered by DjangoBB