A lot of people have recently been asking “How do I make A Platformer” So I wanted to help you guys out!
BE SURE TO LEAVE CREDIT!
For movement, you want to create 2 variables! 1 being for X movement (I would name it X) and one being for Y movement (I would name It Y)
And you also want to make rules for self x and self Y. That will determine an objects Position
ALSO make a rule for Increasing X by (X) everytime your controls are pressed!
When you do that, you want to do this rule:
When game is playing: Set (Position) To Self X divided by X, and for Y set that to Self Y, or A Y position you think is good!
Now, You have movement, and collisions!
All you need now is design, and jumping!
For jumping, add a rule for the height when your jump button is TAPPED! (DO NOT USE PRESSED UNLESS YOU ARE FOR A REASON IM NOT AWARE OF)
For design, it’s really your choice. Determine the colors, size etc. (REMEMBER TO SET IT’S POSITION IF IT’S moving in the bg!
That’s All for now, please give feedback, and I will update this for certain objects such as spikes, etc!
- This helped me, thank you!