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:
Just curious. I am currently learning many different ways of doing collision detection, and I thought that if each individual bit was hittested, it might be a bit CPU intensive, yet your program seems to work just fine.
I learned that hitTest == evil, so I'm searching for different alternatives, and there is a lot out there.
Really, I only know of a few. I've got all the walls in one movieclip and am using a shapeflag hitTest. Yeah I mentioned the enhance code idea in your other thread because that is something I really want, I just don't feel my code is correct. it works and everything but that doesn't mean its good. If you know what I mean .
hitTest == evil
I see your getting to used to coding in ActionScript :P.