Variable count doesn't decrease or increase


i have a code created in cospaces edu, in a class, we have a pro account.

Below is the screenshot of code. And everytime “camera” collides with “ground” (old name was glass wall) the life doesn’t decrease, it always stays 3.

If you could take a look and help resolve, Thank you !

Please find the link
code: ZVZ-ECN

Hi @aparna_dhirde,

You set the variable lives no to number 3, but instead to a string “3”. The CoBlock “change by” and all other numeric CoBlocks don’t work with strings.

Solution is to replace this

with this

and it would work as expected