How To Make A Platformer?

How To Make A Platformer?

A lot of you want to make platformers, but you don’t know how to do it. Well, you have came to the right place!!! Follow these steps and you will have your own platformer! Btw I will post frequently… The player code is in the first post, the collisions I will have to do it tommorow becuase i have no time now as you see so many mistakes ;( .

9 Likes
Player

Step 1:
Grab A Player

In this tutorial I will be using Bear!

Step 2:
Create all sorts of variables

First: create a variable named: X Speed, X Velocity, Y Speed, X Scroll and Y Scroll

Step 3:
X and Y Scroll code

Do this in the Player code:

[When (7) = (7)]
Increase (X Scroll) by { (-1) x (X Velocity) }
Increase (Y Scroll) by { (-1) x (Y Velocity) }
Set position to x (X scroll) y (Y Scroll)
[End]

Step 4:
Controlling the character

[When (Your right controller) is pressed]
Check once if { (X Velocity) > (-9) }
Increase (X Velocity) by (-1)
[End]

[When (Your left controller) is pressed]
Check once if { (X Velocity) < (9) }
Increase (X Velocity) by (1)
[End]

[When (Your right controller) is not pressed]
Check once if { (X Velocity) < (0) }
Increase (X Velocity) by (1)
[End]

When (Your left controller) is not pressed]
Check once if { (X Velocity) > (0) }
Increase (X Velocity) by (-1)
[End]

Flipping (Optional)

[When (X Velocity) > (0)]
Check once if (Filp New variable!) = (0)
Flip
Set (Flip) to (1)
[End]

[When (X Velocity) < (0)]
Check once if (Flip) = (1)
Flip
Set (Flip) to (0)
[End]

Step 5:
Code!

[When (Y Velocity) < (15)]
Increase (Y Velocity) by (0.5)
[End]

The code it self wont work… you just gotta wait. When I am done I am going to ask a leader to put it in the OP

9 Likes

nice, looking good so far!

6 Likes

oh yeah I forgot @TeamCreations

4 Likes

This was a very easy-to-understand tutorial. I might use some of this technique whenever I try making a platformer.

2 Likes

Bump. This is a great tutorial! Very simple to understand. Gotta add the other parts of it

2 Likes

Yeah, it seems to have been discontinued. @creationsofavillager, are you ever coming back to this topic, or can a leader close it for you?

1 Like

yeah I am, just very busy

1 Like

No worries! I understand :)))

1 Like