We can add fixed or dynamic platforms to the game.
To add a fixed platform, follow the steps below in order:
1. Click on the + sign on the right side of the Player tab to create a new Scene.
2. Create a new Node by clicking the + sign under the Scene tab or the Ctrl-A keya.
3. In the Create New Node window that appears, search for and select the expression AnimatableBody2D in the Search line and click on the Create button.
4. Create a new Node by clicking the + sign under the Scene tab or the Ctrl-A keys.
5. In the Create New Node window that appears, search for Sprite2D in the Search line, select it, and click the "Create" button.
6. With the "Sprite2D" Node selected, drag and drop the assets\sprites\platforms.png file from the "FileSystem" tab to the "Texture" section under the "Inspector" tab.
7. After checking the "Enabled" box in the Region line under the "Inspector" tab and clicking the "Edit Region" button, select the "Pixel Snap" value from the selection box to the right of the "Snap Mode" statement in the window that appears, edit the image on the screen as follows, select a green platform and click the "Close" button.
8. While the "AnimatableBody2D" Node is selected, click the + sign under the Scene tab or the Ctrl-A key combination to create a new Node.
9. In the Create New Node window that appears, search for and select the expression CollisionShape2D in the Search line and click on the Create button.
10. While the "CollisionShape2D" Node is selected, under the "Inspector" tab, select the "New RectangleShape2D" option from the "Shape" line. Check the On box in the "One Way Collision" line (it transitions when the player moves up, it does not transition down).
11. Arrange it so that it covers the rectangular platform.
12. Change the "AnimatableBody2D" Node name to "Platform". Save the scene as platform.tscn file.
13. While the "game" tab is selected, drag the "scenes/platform.tscn" file from the "FileSystem" tab and drop it on the player image.
14. Save the scene with Ctrl-S and run the game. The platform will appear above the Player.