Step-by-step tutorial. Create Donkey Kong-like game on Scratch.mit.edu
Step 1: Getting Started
- Go to scratch.mit.edu and sign in or create an account.
- Click on the “Create”. button to start a new project.
Step 2: Set Up the Stage
- Click on the “Backdrops” tab and choose a backdrop. You can also upload your own backdrop if you prefer.
- Choose a suitable backdrop for your game. You can select something resembling a construction site or a jungle.
Step 3: Add Donkey Kong Sprite
- Click on the “Choose a Sprite from Library” button and search for “Monkey”
- Select the Monkey sprite from the library and click “OK” to add it to your project.
- Extra: Download a transparent image of Donkey Kong from the web and upload it into your sprite library.
Step 4: Code Kong’s Movement
- Click on the Kong sprite to select it.
- Drag out a “when green flag clicked” block from the Events category and attach it to the top of the scripting area.
- Drag out a “forever” block from the Control category and attach it below the “when green flag clicked” block.
Step 5: Code Kong’s Movement
- Click on the Kong sprite to select it.
- Drag out a “when [space] key
- pressed” block from the Sensor category and attach it to the scripting area.
- Inside the “when [space] key pressed” block, use “change y by 10” blocks from the Motion category to make Kong jump.
Gravity:
- To simulate gravity, drag [wait .2 seconds] then [change y by -20]
Step 6: Add Barrel Sprites
- Download the Barrel file below and upload it as a sprite.
- Position the barrels on the stage where you want them to appear.
Step 7: Code Barrel Movement
- Click on the barrel sprites to select them.
- Drag out a “when green flag clicked” block from the Events category and attach it to the top of the scripting area.
- Drag out a “show” block from the Looks category and attach it below the “when green flag clicked” block.
- Then, use “glide” blocks from the Motion category to make the barrels move down and across the screen.
Step 8: Code Barrel to End the Game
Step 8: Add Platforms
- Click on the “Choose a Sprite from Library” button again and search for “line.”
- Select the line sprites from the library and click “OK” to add them to your project.
- Position the lines on the stage where Kong can climb and jump.
Step 9: Add Collectibles
- Click on the “Choose a Sprite from Library” button again and search for “banana” or “coin.”
- Position the collectibles on the stage for Kong to collect.
Step 10: Test and Play Your Game
- Click the green flag to test your game and make sure everything works as expected.
- Use the arrow keys to control Kong and try to avoid the barrels while climbing and jumping on platforms.
Step 11: Customize and Enhance
- Experiment with different sprites, backgrounds, and game mechanics to customize your Donkey Kong-like game further.
- Add sound effects, animations, and scoring to make your game more engaging and exciting.
That’s it! You’ve created an easy Donkey Kong-like game on Scratch. Enjoy playing and customizing your game further!
Discover more from Skate Motivate Educate
Subscribe to get the latest posts sent to your email.
You must be logged in to post a comment.