Meteorite logoMeteorite
Back to videos

CODE.ORG Game Lab - Advanced Tutorial - Groups as Arrays with For-Loops and If-Statements

This is a tutorial for the CODE.ORG Game Lab, demonstrating an advanced technique that allows you to quickly and selectively modify the properties of sprites within a group. You will learn: - How to create a group and add sprites to the group - How to use group methods to change the properties of all sprites in a group - What arrays are and how they work, including elements and indexes - How to access or modify an element from an array using its index - How to modify a sprite's properties by accessing it as an index of its group (array) rather than by its name - How to give sprites new properties that they don't include by default - How to use a for-loop to traverse an array - How to combine a for-loop with if-statements to traverse a group (array) of sprites and change their properties selectively

Suggested videos