ScratchData LogoScratchData
Back to JuniLearningScratch's profile

Platformer Pal

JUJuniLearningScratch•Created November 10, 2019
Platformer Pal
8
8
299 views
View on Scratch

Instructions

Help our pal collect the magic keys and to get through the levels of this platformer! 1. Take a look at the backdrops for each level and notice how they will all involve different code. Let’s make message broadcasts for each level so that we can organize our code a little bit better. 2. When the green flag is clicked, switch the backdrop to Level 1 and broadcast Level 1. 3. When Pal receives Level 1, we should tell it where to go on the stage. Now, we need a forever loop that tells Pal to stay on the ground and move with the arrow keys. It might help to separate this code into functions. 4. To make Pal stay on the ground, we want it to move down if it’s not touching green. (Hint: try using a "repeat until" block.) 5. Pal should move left and right using the left and right arrow keys. 6. If the user presses the up arrow key, make Pal jump. To make Pal jump, increase its y position and let it move left and right. (Challenge: Try to make it so Pal can’t jump through platforms.) 7. Choose where you want the magical key to be placed for Level 1, and tell it to go there when it receives the message broadcast. 8. When Pal gets to the key, switch to the next backdrop, broadcast the next level, and stop the Level 1 script. 9. Repeat all of the same steps for Level 2, but this time make sure that when Pal touches the brown pitfall, it falls down and broadcasts to restart the level. 10. Repeat all of the same steps for Level 3, but this time make sure to tell the teleporters where to go, and make Pal go to teleporter out when it touches teleporter in. 11. When the user collects the key on Level 3, broadcast the end of the game and switch the backdrop. 12. Add any sounds or other special effects you want to the game!

Project Details

Project ID343651574
CreatedNovember 10, 2019
Last ModifiedJanuary 13, 2020
SharedNovember 30, 2019
Visibilityvisible
CommentsAllowed