Combined Code
frame 1 {
_root.stop();
}
button 5 {
on (press) {
gotoAndStop(3);
}
}
button 7 {
on (press) {
gotoAndStop(2);
}
}
button 23 {
on (release) {
gotoAndStop(3);
}
}
movieClip 28 {
}
movieClip 32 {
}
instance sweetbro of movieClip 32 {
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = _x - 10;
}
if (Key.isDown(39)) {
_x = _x + 10;
}
}
}
movieClip 35 {
}
instance nanchos of movieClip 35 {
onClipEvent (load) {
speed = 5;
count = 0;
}
onClipEvent (enterFrame) {
_y = _y + speed;
if (hitTest(_root.sweetbro)) {
_y = -25;
_x = Math.random() * 400;
speed += 0.5;
++count;
}
_root.nachocount.text = 'NACHOES: ' + count;
}
}
movieClip 38 {
}
movieClip 42 {
}
instance of movieClip 42 {
onClipEvent (enterFrame) {
_rotation = _rotation + 1;
}
}
movieClip 45 {
}
instance of movieClip 45 {
onClipEvent (load) {
high = false;
_y = -Math.random() * 20000;
}
onClipEvent (enterFrame) {
if (high == false) {
_root.high._alpha = 0;
_root.howhigh._alpha = 0;
} else {
_root.high._alpha = 50;
_root.howhigh._alpha = 255;
}
if (hitTest(_root.sweetbro)) {
high = true;
_y = 1000;
}
_y = _y + 10;
}
}
movieClip 54 {
}