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

Code for the hero sprite


Getting started

To control the movement for the hero, you'll need two variables.  These keep track of how fast he is moving left and right (xspeed) and up and down (yspeed).

You must create those variables.  Do that in the orange 'Data' section of the blocks library. 

(You can call the variables anything you like really, just make sure you are consistent).
Picture

Picture
Powered by Create your own unique website with customizable templates.