Read Foundation Game Design with ActionScript 3.0, Second Edition Online
Authors: Rex van der Spuy
checking collisions with,
498
–
500
vanquishing monsters and creating explosion,
500
–
503
StarImage( ) method,
496
stars, firing in all directions,
620
–
623
startGame( ) method,
210
–
211
,
222
,
224
,
239
,
247
,
271
,
274
,
473
,
476
StateChange( ) method,
338
states, triggering change of,
337
–
357
picking up and dropping objects,
351
–
357
scaling meter with scaleX property,
343
–
344
status, displaying for game,
238
–
240
stepping over breakpoints,
48
stops,
72
String object,
237
String property,
602
Stroke option,
102
Style menu,
97
Swatches tab,
68
SWF files,
142
–
143
,
213
,
221
,
305
–
306
,
628
,
632
release build of,
52
swfObject.js,
39
collisions between boxes and,
447
controlling with keyboard,
285
–
304
enterFrameHandler handler,
296
–
297
keyDownHandler handler,
294
drawing
body,
416
ending levels upon win by,
507
–
512
alpha property,
198
changing character size,
189
–
192
increment and decrement operators,
184
–
185
x and y properties,
198
collisions between character and monster,
487
order of code in enterFrameHandler event listener,
487
–
488
properties and methods,
482
–
484
rosy cheeks,
428
configuring and displaying
TextFormat and TextField objects,
213
–
214
TextEdit,
4
TextField( ) method,
210
,
214
,
224
,
233
,
239
,
274
,
283
,
333
,
439
,
449
TextField object, TextFormat object and,
213
–
214
TextField property,
216
TextFieldAutoSize class,
217
,
452
TextFormat( ) method,
210
,
214
,
224
,
233
,
247
,
274
,
283
,
333
,
439
,
449
TextFormat object,
210
,
213
–
214
,
216
,
220
,
222
TextMate,
4
drawing shape of
TimeBombPanic application class,
439
,
452
TimeBombPanic( ) method,
440
TimeDisplay( ) method,
458
TIMER_COMPLETE property,
452
in Time Bomb Panic application class,
452
timer.start( ) method,
441
,
449
–
451
Tools panel,
64
,
66
–
67
,
69
,
82
,
86
,
89
,
101
,
107
,
114
trace directives,
36
trace output,
10
tracking, guesses,
280
transforming,
70
triggering change of
picking up and dropping objects,
351
–
357
scaling meter with scaleX property,
343
–
344
troubleshooting, compiling SWF files,
40
–
45
two forward slashes (//) character,
35
type tool, in Photoshop,
114
uint variable, vs. int variable,
245
–
246
up buttons, and down buttons,
180
–
182
upper camel case,
54
URLRequest( ) method,
130
,
137
,
149
,
156
,
200
,
203
–
205
Use global light option,
97
UsingATimer( ) method,
449
variable values, changing by one with postfix operators
gameStatus variable,
245
modular programming with methods,
252
overview,
240
uint vs. int variables,
245
–
246
listening for key presses,
227
–
231
types of,
135
vector based collision detection,
365
–
387
Collision.block method,
381
–
387
methods, arguments, and parameters,
378
–
381
values,
380
preventing objects from overlapping,
365
–
373
programming with Collision class,
373
–
378
View/Controller class,
541
virtual machine,
53
visual displays,
281
volume setting, and pan setting,
572
–
574
wanderAimlessly( ) method,
483
wands, rotating around fairy,
618
–
620
x positions, and y positions,
150
–
155
x property, and y property,
198
XCode,
4
y positions, x positions and,
150
–
155
y property, x property and,
198
YouLostImage( ) method,
506