Creating a Script for a Sprite
Now it's time to create that first script. We're going to create a script for the starfish sprite to make it move across the screen. So start by selecting that sprite (Sprite 3 in my project).
Making the Script Start With an Event
The first thing any script needs is an event to kick it off.
Click on the Events blocks and drag the first block onto the scripts pane (
when green flag clicked). Your project will look like this:
Activity - Moving your Sprite.
Use the card below to make a moving sprite.
Now see if you can now make your sprite move by changing the co-ordinate values of x and y.
Update your objectives