External Exam Download Resources Web Applications Games Recycle Bin

Movement

Different ways of movement. Using the default sprite, try and test each of these scripts:


event key triggers



key sensors with axis changes



key sensors with direction changes



follow mouse pointer



follow mouse click - uses broadcast
Create a pointer sprite that we will use as a marker to record the last mouse click:



pointer sprite script:



cat sprite script:





Broadcast in Scratch can be similiar to a GOTO statement in coding / programming, which may lead to Spaghetti Code. Be careful of the timing of broadcast triggers if you have queue of instructions that must be serially processed.

questions