Setting the Start Position of Your Sprite
Setting the Start Position of Your Sprite
1. Click and drag a “when green flag clicked” block from the Events category in the Block Palette.
2. Click and drag your Sprite on the Stage to the location you want your sprite to begin, each time you run your code.
This will change the x-coordinate and y-coordinate of your Sprite in the Sprites Pane.
3. Click and drag a “go to x: y:” coordinates block from the Motion category in the Block Palette on to the Code Area. This block will tell your Sprite where to begin on the Stage when you run your code. You will notice that the x-coordinate and y-coordinate inside the block match the x-coordinate and y-coordinate of your sprite in the Sprites Pane.
Views | |
---|---|
1 | Total Views |
1 | Members Views |
0 | Public Views |
Share by mail
Please login to share this webpage by email.