http://flashgameu.com/ Gary Rosenzweig builds a catching game in Flash ActionScript 3.0. In this part, you learn how to have a bucket move with the cursor at the bottom of the screen and catch objects. Some are good and some are bad, and the score changes based on what type of object is caught. You can find full resolution video and more podcasts at FlashGameU.com.
Debug it. The errors seem to explain the problems. Now it is up to you as the programmer to figure out what is wrong with the code and correct the problems.
macmostvideo 2 years ago
I get
"1084: Syntax error: expecting leftparen before else."
"1084: Syntax error: expecting colon before assign."
"1084: Syntax error: expecting rightbrace before semicolon."
and "1084: Syntax error: expecting rightparen before else."
Not liking it one bit
182sambo 2 years ago
Lots of ways to do it. You could use your approach -- not sure what you mean by "doesn't seem to work" -- if i8t doesn't work then debug it and find the problem.
macmostvideo 2 years ago
Is there a way of creating a THIRD array for say, a special item giving you more points?
simply adding a new "special" array variable and an "else if" statement to the newObject function doesn't seem to work.
182sambo 2 years ago
excellent video
tomths 2 years ago