Lesson #4
Making your sprite move (part 2)
In lesson 3 we learned how to control our sprite using the arrows keys. Now we will explore movement a little further by looking at how you can make sprites continuously move and what games might require this to be useful. Happy Coding!
Learning Intention
Code your Sprite to move continuously by using keys and your mouse/trackpad.
Success Criteria
I can code my Sprite to move constantly in Scratch.
I can change the speed in which my Sprite moves.
I can control my Sprites movement using my mouse/trackpad.
I can make my Sprite spin.
Introduction Tasks
Recap on what was learned last lesson - Motion block, X/Y axis, debugging, the importance of programming accurately.
Questions
What types of games might you want a sprite to move all the time?
Pacman - How is Pacman controlled? Is this the same as the Ghosts?
Key learning in the main task video
Constant movement.
Changing speed.
Movement by mouse control.
Making sprites spin.
Plenary
Discuss with a partner, what types of games could these commands come in useful and how might they apply to your game?
Questions
How do you ensure your sprite is moving constantly? Use the forever command or use the mouse pointer option
How do we use the turn command to make our sprite spin? By using the forever command.
Extending the Learning
Suggested links from IDL Planner
Use a dictionary to help you understand new gaming words and create a personal dictionary using the definitions. Here are some to get started with - AI, AR, Gamification, Bug, Beta, Code, Console, Content, Demo, Feature, Mechanics, Mobile gaming, PC, Pixel, Playtesting, Quality assurance, Scripting, Sprite, e-sports, Sandbox. (LIT 2-15a)
Create the backstory for a new video game character. (LIT 2-24a, LIT 2-28a)
Create a storyboard for a new video game (LIT 2-24a, LIT 2-28a)
Design a hero or nasty enemy for a video game you have designed (EXA 2-05a/EXA 2-06a)