ForumsProgramming ForumMaze Game

42 12768
Maaron
offline
Maaron
47 posts
Nomad

Hey everyone,

I'm making a maze game but I'm having a bit of trouble. When you hit the walls you are sent to a different frame where it tells you that you have lost, here is the code for that:

if (Wall.hitTest(Player._x, Player._y, true)) {
gotoAndStop(2);
}

That works fine, it's just the restart button I can't get working, I click on it and nothing happens, here is the code:

Retry.onRelease = function() {
gotoAndStop(1);
}

I have no idea why it won't work, please help me.

  • 42 Replies
Showing 61-60 of 42