For this sprite only, means local, only this function, only this script can use this variable, make this variable for all sprites, meant it was global.
对于只为一种精灵,意思是局部的,只有这个函数中,这个脚本中才可以用这个变量,这个变量为全部精灵而创建,意思是这个变量是全局的。
And obviously, that ought to involve the variable in some way, or it's not going to make a lot of sense, so this includes the variable, since that's the thing that's changing.
很明显,这跟计数器的变量有某种关系,否则的话就没多大意义了,因此这跟计数器有关,因为它正是每次循环改变的东西。
It's a common mistake to make if you forget that I've actually declared that variable up top, but wait a minute, I know any time that I use a variable, I have to declare it.
这是一个通常犯的错误,如果你忘了,之前在前面已经声明了这个变量,等等,我知道在任何时候,我使用一个变量,我必须声明它。
There's something called "variable life," which refers to a life insurance policy where the policyholder can make decisions about the investment of the money in the whole life policy.
有种保单叫做"可变寿险",作为终身寿险的一种,投保人可以自主选择,在终身寿险上进行多少投资
Use variable names that make sense.
尽量用有意义的变量名字。
When you created a variable in scratch, you could either make it for this sprite only or for all sprites. All right.
当你在scratch中创建一个变量,你可以只为这个精灵创建,或者为全部的精灵而创建,好的。
应用推荐