follow
The engine steers one sprite towards another at a speed. Sprites.
enemy.follow(mySprite, 40)
Arcade advanced skills · Find each block in the MakeCode toolbox (the category is at the end of each line).
The engine steers one sprite towards another at a speed. Sprites.
enemy.follow(mySprite, 40)
Check there is some left first, then use one up, so the count never goes below zero.
if (ammo > 0) {
blocks
ammo += -1
}
A variable can hold true or false, to remember what is happening now. Logic.
let shield = false