110 likes | 307 Views
POP QUIZ!. LO: Learn how to control a sprite to move using the X and Y co-ordinates. Learning Objective. Go to www.touchdevelop.com Sign in using a windows live ID. Click on the open link at the top of the screen. Click on the name of your script used previously.
E N D
LO: Learn how to control a sprite to move using the X and Y co-ordinates Learning Objective
Go to www.touchdevelop.com Sign in using a windows live ID. Click on the open link at the top of the screen. Click on the name of your script used previously. Loading Your Previous Script
Use Touch develop to build an application which : Moves characters along X and Y co-ordinates without input Extend your game to use interactions: If characters bump into each other on the X and Yco-ordinates create an event or an action whenthis takes place. Learning Outcomes
Create a procedure click on new in the code section. Name the procedure to something you can remember. I.E – Score setup Write out your code which would set up the score on the screen. Insert your procedure into main(). Creating a moving object
Try and get a number of moving objects through out your game. Have a character which moves up and then down using a loop. Have a character which moves left and then right using a loop. Task: -
Extension – Get your characters to do some, type of action if they happen to bump into each other. Edge of screen… See if you can get your character to change direction when it is at a particular position on the screen. Extensions: -