ScratchData LogoScratchData
Back to SpiritSK's profile

Clones Shooting Bullets

SPSpiritSK•Created January 28, 2021
Clones Shooting Bullets
16
12
530 views
View on Scratch

Instructions

========================================= 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. =========================================

Description

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.

Project Details

Project ID480178340
CreatedJanuary 28, 2021
Last ModifiedMarch 17, 2025
SharedOctober 26, 2022
Visibilityvisible
CommentsAllowed