You have some unusual and creative coding there! I suggest you have a look at the following demo for how to use CoSpace Properties correctly:
There are several issues with your code:
- Events inside Run Parallel - you don’t need the run parallel - simply set your event listener at the beginning and let it do all the work
- Putting a variable value as the name of your CoSpace Property - while this is actually a useful advanced technique, I don’t think this is what you intended.
- Mixing variables & CoSpace Properties - you use the change variable by block as well as CoSpace Properties blocks
- I can’t see where you initialise the variable Lives.
Once you’ve looked at the above CoSpace, also search the Gallery for “techleap” - there are many demos there on how to use variables, CoSpace Properties, and other aspects of CoSpaces Edu.
Hope that helps! Let me know if you have any further questions about this. If this solves your problem, please mark this post as the Solution.
Geoff @ TechLeap