Instance of Symbol 1 MovieClip "dupe" in Frame 1
onClipEvent (load) {
i = 0;
time = 0;
}
onClipEvent (enterFrame) {
if (time >= 0) {
duplicateMovieClip (_root.trail, "t" + i, i);
i++;
time = 0;
}
}
Instance of Symbol 3 MovieClip "trail" in Frame 1
onClipEvent (load) {
_root.trail._x = -50;
_root.trail._y = -50;
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 5 MovieClip "hero" in Frame 1
onClipEvent (load) {
xs = 0;
ys = 0;
s = 5;
_rotation = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_rotation = (_rotation - 5);
}
if (Key.isDown(68)) {
_rotation = (_rotation + 5);
}
if (Key.isDown(83)) {
_x = (_x - (s * Math.sin((_rotation * Math.PI) / 180)));
_y = (_y + (s * Math.cos((_rotation * Math.PI) / 180)));
}
if (Key.isDown(87)) {
_x = (_x + (s * Math.sin((_rotation * Math.PI) / 180)));
_y = (_y - (s * Math.cos((_rotation * Math.PI) / 180)));
}
if (_x <= 10) {
_x = (_x + s);
}
if (_x >= 540) {
_x = (_x - s);
}
if (_y >= 390) {
_y = (_y - s);
}
if (_y <= 50) {
_y = (_y + s);
}
}