Scope of variables
Hi,
I was trying to design a multiplayer scenario where the students try to solve some challenges using the code builder. I would like to use an integer variable that stores the score of every student (player) and increases its value every time a player solves one of the multiple challenges they are going to find in the world.
I was thinking about the following approach: to have a "global" array of scores, so that every student can update his corresponding score in the array from his codebuilder
I don't see any option to change the scope of a variable in makecode, neither to create a list / array. If you could think about an approach that could help me to solve my problem, I would be glad to know.
-
Correct me if I misunderstand:
You want to create variables that are accessible by multiple players.
You want these variables to be accessible (I'm assuming here) from multiple programs, or multiple player chat commands.
You want to create arrays in MakeCode.
I can help with one! =D
0 -
Thank you!
Can a variable be accessible from multiple programs?
0
Please sign in to leave a comment.
Comments
2 comments