Hi, I’m doing a platform game, and I can’t seem to code so that when the char hits the enemy, it goes to the previous scene.
What’s wrong with this code?
I have put this code in the enemy movieclip;
onClipEvent (enterFrame) {
if (this.hitTest(char)) {
prevScene();
}
}
Thanks,