Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
advanced,
623
firing bullets with timer,
631
–
632
rotating and shooting toward mouse,
628
running away from player,
627
–
628
firing projectiles in all directions,
613
–
623
rotating wand around fairy,
618
–
620
Killer Bee Pandemonium! game,
632
–
640
moving objects with mouse,
606
–
632
fixing to mouse position,
606
–
607
playerProdcutinstall.swf,
39
playGame( ) method,
233
–
234
,
236
,
239
,
249
,
251
,
272
,
276
–
278
playing fields, designing,
429
–
430
PlayingSounds class,
567
PlayingSounds( ) method,
568
PNG (Portable Network Graphics),
58
,
262
,
304
,
390
,
392
–
393
,
416
,
431
,
437
,
482
positioning
Sprite objects on stage,
148
–
158
displaying and positioning buttons,
155
–
158
x and y positions of objects,
150
–
155
postfix operators
changing variable values by one with,
240
gameStatus variable,
245
modular programming with methods,
252
uint vs. int variables,
245
–
246
Problems window,
36
–
37
,
40
–
41
,
43
programming,
8
–
9
,
121
,
207
,
389
–
463
dot notation,
159
function definitions,
161
method calls,
160
collisions between monster and,
487
order of code in enterFrameHandler event listener,
487
–
488
properties and methods,
482
–
484
code summary,
202
collisions between character and boxes,
447
events
communicating between classes by dispatching,
514
–
515
designing playing field,
429
–
430
LevelOne class,
475
levels
finishing first,
518
loading and displaying images,
123
–
158
code structure,
147
controlling Flash Player properties,
127
–
129
explanation of process,
132
–
134
setting up new projects,
124
–
126
modular, with methods,
252
moving character incrementally,
182
–
198
alpha property,
198
changing character size,
189
–
192
increment and decrement operators,
184
–
185
x and y properties,
198
giving _levelOne object access to stage,
471
–
474
LevelOne class,
475
naming conventions,
54
objects
overcoming fear of,
122
scrolling game environment,
456
–
463
adding objects to game,
458
–
459
Sprite objects
controlling with properties,
178
–
182
checking collisions with,
498
–
500
vanquishing monsters and creating explosion,
500
–
503
TimeBombPanic application class,
439
Project Properties window,
18
projectiles, firing in all directions
rotating wand around fairy,
618
–
620
properties, and methods,
482
–
484
publishing, Flash animation and,
640
random( ) method,
255
randomizing, firing of bullets with timer,
632
Rectangular Marquee Tool,
101
,
108
rectangular selection tool,
100
–
106
Reflect command,
420
removing breakpoints,
47
Adobe Flash Professional,
5
computer,
2
reserved words,
23
resizing paths, pen tool,
87
–
88
resources, for Photoshop,
119
rotating
and shooting toward mouse,
628
Run command,
36
Save for Web and Devices window,
106
scaleX property, scaling meters with,
343
–
344
scaling,
69
adding objects to game,
458
–
459
game world, motion of objects in,
522
–
537
ScrollingLevel class,
523
ScrollingMonsters( ) method,
523
SDK (software development kit),
4
Select stop color window,
73
–
74
setupEventListeners( ) method,
333
–
334
,
338
,
440
–
441
setupTextfields( ) method,
210
,
222
–
223
,
271
,
274
,
333
,
440
–
441
Shape( ) method,
361
Shape object,
361
Show Bounding Box option,
87
SimpleButton class,
270
SimpleButton( ) method,
140
SimpleKeyboardControl( ) method,
287
simpleMethod( ) method,
160
Sky layer,
79
software development kit (SDK),
4
Sound class,
569
sound effects, in platform games,
567
–
574
integrating sound effects,
569
–
570
volume and pan setting,
572
–
574
Sound object,
568
SoundChannel( ) method,
568
–
570
,
573
,
598
SoundChannel object,
569
,
571
,
573
–
574
Sprite class,
20
,
139
,
159
,
178
,
436
,
446
,
537
Sprite( ) method,
130
,
140
,
203
,
205
,
274
,
291
,
325
,
337
,
340
,
433
Sprite objects
controlling with properties,
178
–
182
displaying and positioning buttons,
155
–
158
x and y positions of objects,
150
–
155
square.graphics.endFill( ) method,
361
–
362
blocking movement at edges of,
298
–
303
boundaries of
scrolling game environments and,
460
–
463
checking for boundaries of,
486
–
487
giving _levelOne object access to,
471
–
474
positioning Sprite objects on,
148
–
158
displaying and positioning buttons,
155
–
158
setting boundaries of,
298
Stage class,
221
stage.addChild( ) method,
145
,
436
,
472
StageBoundaries file,
302
star weapons