I’m working on a ball bouncing game. when i try to run the code the message says expected “=” near “+” line 37. I’m new to Corona so i don’t know what is wrong with the code. Can you guys take a look and tell me how to fix it. thank you.
Change at end of row 37 “conten” to content
I did that but the error is still the same
Try to delete line 37 or comment it out.
And see what you get.
First, it’s really helpful to use “Copy” (CTRL-C on a PC or CMD-C on a Mac) to copy your code, then click in the blue <> button at the top of box you type in then paste your code (CTRL-V on a PC, CMD-V on a Mac). I would love to show you the problem, but I can’t grab the code from an image.
I think you need either an “and” or a “or” at the end of line 36 and move the “then” to the end of line 37. With the “then” at the line 36 its looking for a formula that’s filling a variable on the next line. Since you don’t have
variable = forumla
on line 37, it’s giving you an error.
Rob
Change at end of row 37 “conten” to content
I did that but the error is still the same
Try to delete line 37 or comment it out.
And see what you get.
First, it’s really helpful to use “Copy” (CTRL-C on a PC or CMD-C on a Mac) to copy your code, then click in the blue <> button at the top of box you type in then paste your code (CTRL-V on a PC, CMD-V on a Mac). I would love to show you the problem, but I can’t grab the code from an image.
I think you need either an “and” or a “or” at the end of line 36 and move the “then” to the end of line 37. With the “then” at the line 36 its looking for a formula that’s filling a variable on the next line. Since you don’t have
variable = forumla
on line 37, it’s giving you an error.
Rob