========================================= CONTROLS Movement - Arrow Keys ========================================= This project demonstrates a method to make clones interact with other clones independently. It uses clones of beetles as "Enemies" that shoot clones of arrows as "Bullets". This project uses lists as means to "transfer" data from one clone to the other. It also uses broadcasts for clones to communicate with another. =========================================
Usually, if you want a sprite to shoot bullets, you'd make the bullet clone go to the sprite's position and face the direction that sprite is facing. But what if there are multiple clones shooting multiple bullets? Lists are the answer to this. Each enemy clone will put their x, y position and direction to a list. The bullet sprite will then loop through this list and create a bullet clone for every item in it. This happens in the constructor() custom block in Bullet sprite.