Arrays

Change Variable

my_variable = my_variable + 1

Example

The variable “score” is declared as a “number” and checked to display on the stage.

// Example: variables
score = 0
example_Sprite_sprite.show()
    example_Sprite_sprite.say('click me to add 1 to displayed score variable')
    example_Sprite_sprite.whenClicked(function (){
        score = score + 1
    })