02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> <strong>Games</strong><br />

49 y = _y + movey;<br />

50 if (x250){<br />

51 movex *= -0.6;<br />

52 x = _x + movex;<br />

53 }<br />

54 if (y140){<br />

55 movey *= -0.6;<br />

56 y = _y + movey;<br />

57 }<br />

58<br />

59 if (bouncing) bounce();<br />

60<br />

61 _x += movex;<br />

62 _y += movey;<br />

63 }<br />

Listing 18.19<br />

Adjusting the camera location and scale<br />

Figure 18.4 Testing the game<br />

302

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!