Combined Code
movieClip 4 pointAni_mc {
frame 9 {
this.stop();
}
}
frame 1 {
_root.fast = 0;
_root.fastfuck = 0;
_root.fastfuckcooldown = 0;
_root.handcooldown = 0;
_root.noisecooldown = 0;
}
movieClip 11 {
}
movieClip 15 {
}
frame 29 {
_root.scene = Math.round(Math.random() * 2) + 0;
trace(_root.scene);
if (scene == 0 && _root.fast == 0) {
gotoAndPlay(5);
}
if (scene == 1 && _root.fast == 0 || _root.fast == 1) {
if (_root.fastfuckcooldown == 0) {
gotoAndPlay(31);
_root.fast = 1;
} else {
gotoAndPlay(5);
}
}
if (scene == 2 && _root.fast == 0) {
gotoAndPlay(53);
}
if (_root.fastfuckcooldown > 0) {
_root.fastfuckcooldown -= 5;
if (_root.fastfuckcooldown < 0) {
_root.fastfuckcooldown = 0;
}
}
}
frame 31 {
_root.noisesound = Math.round(Math.random() * 1) + 0;
trace('Give a yap?' + _root.noisesound);
if (_root.noisesound == 0 && _root.noisecooldown <= 0) {
noiseSound = new Sound(this);
noiseSound.attachSound('noise2.wav');
noiseSound.start(0, 1);
_root.noisecooldown = Math.round(Math.random() * 30) + 5;
trace('No more booty slaps for' + _root.handcooldown);
} else {
if (_root.noisesound == 1 && _root.noisecooldown <= 0) {
noiseSound = new Sound(this);
noiseSound.attachSound('noise1.wav');
noiseSound.start(0, 1);
_root.noisecooldown = Math.round(Math.random() * 30) + 5;
trace('No more booty slaps for' + _root.handcooldown);
}
}
if (_root.noisecooldown > 0) {
_root.noisecooldown -= 10;
if (_root.noisecooldown < 0) {
_root.noisecooldown = 0;
}
}
}
frame 32 {
_root.handscene = Math.round(Math.random() * 1) + 0;
trace('Will we have a boot slap?' + _root.handscene);
if (_root.handscene == 0 && _root.handcooldown <= 0) {
hand.gotoAndPlay(2);
_root.handcooldown = Math.round(Math.random() * 25) + 25;
trace('No more booty slaps for' + _root.handcooldown);
}
if (_root.handcooldown > 0) {
_root.handcooldown -= 10;
if (_root.handcooldown < 0) {
_root.handcooldown = 0;
}
}
}
movieClip 66 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
frame 40 {
if (_root.fast == 1) {
trace('Drill mode');
gotoAndPlay(31);
_root.fastfuck += 1;
if (_root.fastfuck >= 10) {
_root.fast = 0;
_root.fastfuck = 0;
_root.fastfuckcooldown = 100;
}
}
}
frame 51 {
_root.scene = Math.round(Math.random() * 2) + 0;
trace(_root.scene);
if (scene == 0 && _root.fast == 0) {
gotoAndPlay(5);
}
if (scene == 1 && _root.fast == 0 || _root.fast == 1) {
if (_root.fastfuckcooldown == 0) {
gotoAndPlay(31);
_root.fast = 1;
} else {
gotoAndPlay(5);
}
}
if (scene == 2 && _root.fast == 0) {
gotoAndPlay(53);
}
if (_root.fastfuckcooldown > 0) {
_root.fastfuckcooldown -= 5;
if (_root.fastfuckcooldown < 0) {
_root.fastfuckcooldown = 0;
}
}
}
frame 68 {
_root.scene = Math.round(Math.random() * 2) + 0;
trace(_root.scene);
if (scene == 0 && _root.fast == 0) {
gotoAndPlay(5);
}
if (scene == 1 && _root.fast == 0 || _root.fast == 1) {
if (_root.fastfuckcooldown == 0) {
gotoAndPlay(31);
_root.fast = 1;
} else {
gotoAndPlay(5);
}
}
if (scene == 2 && _root.fast == 0) {
gotoAndPlay(53);
}
if (_root.fastfuckcooldown > 0) {
_root.fastfuckcooldown -= 5;
if (_root.fastfuckcooldown < 0) {
_root.fastfuckcooldown = 0;
}
}
}