I’m trying to return the count of objects on the right half of the screen, but it keeps saying my variable rightSideCount is a boolean (false) instead of a number value, even if I globally declare local rightSideCount = 0 up above.
local rightSideCount = 0 ..bla bla bla local stage = display.getCurrentStage() rightSideCount = stage.numChildren \> centerX print(rightSideCount)
Obviously I have the syntax wrong, but not sure what it should be. Any ideas?
Thx