Strange String Concatenation Behavior

A student wants to display the score in his game like this: “Score: 25”

His code in this screen shot (line 40) works when there is no space after the : in the string “Score:”.

If a space is added after the : (where the cursor is in the screen shot) then the score does not appear on the screen.

Any idea why?



Hi @jwilson25,

Because there is a width and height defined, I am guessing the extra space is causing text to be cropped or cut-off. Try playing around and increasing the width and height and go from there.

Good luck!