Hello peoples,
It’s really late and I’m really tired and I’m working on this top down game where a guy has to collect coins and dodge stuff.
So here I have this Pit where you can fall into, which is basically a thing that if you touch it you go to the Game Over frame, which is in my case frame 1.
BUT, that doesn’t seem to be working since I got 2 scenes now and this line of code is supposed to warp the guy to frame 1 of the current scene, not frame 1 of the whole game.
onClipEvent (enterFrame) {
if (_root.survivor.hitTest(this)) {
this._x = -50;
this._y = -50;
tellTarget ("_root") {
gotoAndStop(1);
}
}
}
That’s attached to the hole thing, survivor is my characters instance name.
If anyone could help me that’d be really great!
Thanks in advance.