Retarded Answers to Difficult Problems.
I'm working on a game at the moment thats a platformer. The game is going to have a v-cam in it, but as many know, it causes a lot of problems. Most problems I can fix, but this game is tile based, so the v-cam would cause a lot of snagging on the space where the tiles intersect. I thought this problem was unavoidable, so I went on and built a time based hitTest and all that jazz. I've been working on this time release hittest thing for about 4-5 hours; WHICH WORKED VERY HORRIBLY >:( ; until I thought a little deeper.
When you put the code for a HUD movement under the V-Cam movement, the HUD lags behind the camera, much like in this game.
http://www.newgrounds.com/portal/view/35 8628
So maybe the tiles were lagging behind the camera and thus fucking up the hitTest with the actual tiles. The fix? I just made the layer with the camera on it the bottom most layers, and my problems were solved. And now I'm kind of mad at myself because I didn't figure that out sooner, seeing as I've been having this snagging problem for months now.
Sometimes when I'm working on things such unexplained and STUPID errors happen. And I most of these stupid errors I try to work around. I end up making dozens of lines of code for something that probably only needed 5 or 6. It's like devising a search pattern to find your keys you lost when they're sitting right on your desk.