• Homework
  • Thirds
  • Upper Thirds
  • Fourth
  • Divisions
    • ICT
    • Computer Science
  • Fifth
  • Lower Sixth
  • Upper Sixth
    • Upper Sixth Theory
  • Blog
  • Careers
  • Unity
  • Networking

Control blocks for the bat sprite

There are three sets of blocks that make the paddle move.  The first block is just run on start - it doesn't have a forever loop so it does its stuff and then finishes.

It's job is to put the bat in the right starting point and make sure that the bat doesn't rotate when it's moved.
Picture

Picture
And finally ... we add some blocks to handle left and right movement.  The keys that you use are up to you, I've used a and s, but it might make more sense to use the left and right arrow keys.

There's nothing to stop you adding blocks to allow the bat to move up and down - would that make for a more interesting game?  Why not try it and see?
Powered by Create your own unique website with customizable templates.