Goal:
Let’s move on to programming Thor. Don’t forget switch sprites by selecting Thor on the right side of your screen.
The code will once again be nearly identical!
Steps:
- Click on the Thor sprite.
- Click on Control.
- Drag when backdrop switches to to an empty space.
- Make sure to switch the event to Find Thor.
- Click on Motion.
- Drag set x to and set y to underneath When Backdrop switches to.
- Click on Operators.
- Drag pick random into both both motion blocks.
- Set x from -240 to 240 and y from -130 to 180.
- Lastly, drag show from the looks tab as the last block.