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:
I tried the trace thing and none of it worked, the button or the trace, I have absolutely no idea why it isn't working, from what I know of actionscript it should be working.
Sorry about the triple post but could the problem be that when ever I click retry it takes me back to the maze but the player is still touching the wall so it just sends me back to the "you lose" page. If this is the case then I need the player to be reset to a certain set of coordinates when I click retry, how would I go about doing this.