Today, I am going to explain you about variables. What is a variable. You can choose the name of the variable, and you can choose if you want to show it or not. You have to write the instructions of the variable. There are 3 instructions first there is the one that you can you to set the number of the variable to a specific one, independly of the last number from the variable. For insteance, when green flag clicked, set lifes to 0. Then the other one is change by…. For insteance, when……. change lifes by 1. In that case you dont want to put the variable into a specific number, you just want to add 1 to the last number. You could also put change by -1 in that case, it would rest 1 to the last number. Then you can put. If lifes equal 0 or less than 0 (with help of conectors) stop everyone. For that, there is a round orange thing wich says the name of the variable.
Wednesday, October 19, 2016
Today, I am going to explain you about variables. What is a variable. You can choose the name of the variable, and you can choose if you want to show it or not. You have to write the instructions of the variable. There are 3 instructions first there is the one that you can you to set the number of the variable to a specific one, independly of the last number from the variable. For insteance, when green flag clicked, set lifes to 0. Then the other one is change by…. For insteance, when……. change lifes by 1. In that case you dont want to put the variable into a specific number, you just want to add 1 to the last number. You could also put change by -1 in that case, it would rest 1 to the last number. Then you can put. If lifes equal 0 or less than 0 (with help of conectors) stop everyone. For that, there is a round orange thing wich says the name of the variable.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment