-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mobling.as
35 lines (27 loc) · 905 Bytes
/
Mobling.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package classes {
import starling.events.Event;
public class Mobling extends Combatant {
public var idleMc:SuperMovieClip = new SuperMovieClip('moblingIdle', GV.BOSS2_SPRITESHEET, 0, -10);
public var projectileMc:SuperMovieClip = new SuperMovieClip('pitchforkMissle', GV.COMBATANT_SPRITESHEET, 0, 0, true);
public function Mobling(){
floats = true;
introMessage = introMessageRandomizer(new <String>["Taste my pitchfork!", "For the swarm!", "Kill the outsider!", "I found a dead horse. Can we beat it?"]);
}
public function uniqueAi():void{
movementAI();
attackAI();
}
public function stupifyAnimation():void{
executeEffects();
}
public function uniqueMovementAnimation():void{
skewX = 0.5*facing*-1;
shadow.skewX = skewX;
}
public function uniqueIdleAnimation():void{
changeAnimation(idleMc);
skewX = 0;
shadow.skewX = skewX;
}
}
}