Discuss Scratch

robotmananimator
Scratcher
73 posts

how do you make a platformer Game?

how do you make a platformer Game?
dual_creator43
Scratcher
1000+ posts

how do you make a platformer Game?

Kwaheri1025
Scratcher
77 posts

how do you make a platformer Game?

1) You need a player sprite. You can design the sprite to look however you want, many people choose a shape like a box or a circle. For the physics script, you can either create one yourself or find one by searching up ‘platform base’ or ‘platformer tutorial’. Just remember to credit whoever's base/tutorial you took the script from.

2) You need to create the levels. Customize them however you want: many platformers are simply black, rectangular platforms, but there are many others that are intricately designed, with amazing graphics and special effects. However, a defining feature in most platformers is that there are almost always some types of obstacles. Most people choose red (lava). Also, many platformers have bounce pads. Some even have portals, or sticky substances. Get creative! Also, you have the option to make the level scrolling. This allows you to add more. For a stationary level, the code for advancing to the next level is simple. For scrolling, you have to create a scroll variable and change it when you move.

Hope this helped !
Pancake_Boy616
Scratcher
6 posts

how do you make a platformer Game?

Wainggan
Scratcher
500+ posts

how do you make a platformer Game?

Pancake_Boy616 wrote:

Your first post to the forums is spam, and a necropost. Don't do that!

Last edited by Wainggan (Dec. 5, 2019 18:15:08)

cs3826528
Scratcher
1 post

how do you make a platformer Game?

How do you make a platformer game?
imfh
Scratcher
1000+ posts

how do you make a platformer Game?

cs3826528 wrote:

How do you make a platformer game?
Welcome to the Scratch Forums! This topic is really old so you shouldn't be posting on it. Please create your own topic instead.

A great way to start out a platformer would be to check out this tutorial by @griffpatch_tutor: https://scratch.mit.edu/projects/67727504/
kechup365
Scratcher
2 posts

how do you make a platformer Game?

dose not help
Mdawg4884
Scratcher
100+ posts

how do you make a platformer Game?

Are you looking for a PC platformer or mobile friendly one or either?
I_am_a_nerd28
Scratcher
27 posts

how do you make a platformer Game?

Use this code .
But first make a backdrop of the platform.

when green flag clicked
go to x: () y: ()
set [ Xv] to [0]
set [ Yv] to [0]
forever
if <key ( left arrow ) pressed> then
change [ Xv] by (-1)
end
if <key ( right arrow ) pressed> then
change [ Xv] by (1)
end
set [ Xv] to ((Xv) * (0.9))
change x by (Xv)
if <touching color [#Platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change x by ((Xv) * (-1))
if <key [ up arrow] pressed?> then
if <(Xv) > [0]> then



else
set [ Xv] to [5]
end
set [ Yv] to [10]


else
set [ Xv] to [0]
end
end
end
end
end
end
end
change [ Yv] by (-1)
change y by (Yv)
if <touching color [#platform color] ?> then
change y by ((Yv) * (-1))
set [ Yv] to [0]
end
change y by (-1)
if <touching color [#platform color] ?> then
if <key [ up arrow] pressed?> then
set [ Yv] to [15]
end
end
change y by (1)
end

Hope that worked for you!!!

Last edited by I_am_a_nerd28 (April 22, 2020 06:23:56)

nightmaretedbear4
Scratcher
3 posts

how do you make a platformer Game?

WAY TOO LONG, BRO
>
glitchproducts
Scratcher
69 posts

how do you make a platformer Game?

nightmaretedbear4 wrote:

WAY TOO LONG, BRO
>
yeah way to long
pencilanimationz
Scratcher
7 posts

how do you make a platformer Game?

how do you make a platformer
Adhrit2010
Scratcher
11 posts

how do you make a platformer Game?

pencilanimationz wrote:

how do you make a platformer

you can check the code for one of my platformer games

https://scratch.mit.edu/projects/393574691/
or
https://scratch.mit.edu/projects/392832313/
pencilanimationz
Scratcher
7 posts

how do you make a platformer Game?

oh okay
AnExtremelyLongName
Scratcher
48 posts

how do you make a platformer Game?

Please don't make a generic platformer! I know you want to get popular, but making generic platformers without creativity is not the way to go! I highly recommend being unique in your platformer.
Awsome_Scratcher_543
Scratcher
12 posts

how do you make a platformer Game?

Look at Professor Blue's(FUNUT's) tutorial here.
define Platform(Jump Height)(Gravity)(Friction)(Running Speed)
if <<key [right arrow v] pressed?> or <key [d v] pressed?>> then
point in direction (90 v)
change [XV v] by (Running Speed)
end
if <<key [left arrow v] pressed?> or <key [a v] pressed?>> then
change [XV v] by ((Running Speed) * (-1))
end
change [XV v] by ((XV)*(Friction))
change x by (XV)
continued…
Click here for the rest of the code.

I_am_a_nerd28 wrote:

Use this code .
But first make a backdrop of the platform.

when green flag clicked
go to x: () y: ()
set [ Xv] to [0]
set [ Yv] to [0]
forever
if <key ( left arrow ) pressed> then
change [ Xv] by (-1)
end
if <key ( right arrow ) pressed> then
change [ Xv] by (1)
end
set [ Xv] to ((Xv) * (0.9))
change x by (Xv)
if <touching color [#Platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change y by (1)
if <touching color [#platform color] ?> then
change x by ((Xv) * (-1))
if <key [ up arrow] pressed?> then
if <(Xv) > [0]> then



else
set [ Xv] to [5]
end
set [ Yv] to [10]


else
set [ Xv] to [0]
end
end
end
end
end
end
end
change [ Yv] by (-1)
change y by (Yv)
if <touching color [#platform color] ?> then
change y by ((Yv) * (-1))
set [ Yv] to [0]
end
change y by (-1)
if <touching color [#platform color] ?> then
if <key [ up arrow] pressed?> then
set [ Yv] to [15]
end
end
change y by (1)
end

Hope that worked for you!!!
@I_am_a_nerd28 used a lot of if-else blocks, to minimize the if-else blocks use a repeat until block.

starpro89
Scratcher
100+ posts

how do you make a platformer Game?

this video might help https://youtu.be/VoujPoiwtio
TopGG
Scratcher
500+ posts

how do you make a platformer Game?

I literally made a project for this topic without even realising. Go to https://scratch.mit.edu/projects/396373021/
Hope this helps!
darryl27
Scratcher
2 posts

how do you make a platformer Game?

check out my platformer
ask [how to make the sprite advance a level without a portal or whatever?] and wait

https://scratch.mit.edu/projects/399026932/

Powered by DjangoBB