Im having some issues with collision... for some reason i cannot assign value to blocks smashed from outside Score() Ive tried doing something before its called so i can assign a score value to blocks destroyed but the if statement doesn't seem to be called at all where a variation of it in the Score() function seems to give an error about += instead of :... Any advice or input would be greatly appreciated. Im a fairly new programmer on and off over the years.
asked Nov 12 '10 at 06:28 PM
Remove the semicolon from the if line in the score function; you essentially have an if statement that does nothing followed by a code block.
answered Nov 12 '10 at 06:48 PM