Hi Kirupa Community my name is themxguy. I have been surfing Kirupa for sometime and have recently started an account in order to learn more about flash gaming design. I have a question regarding the Actionscript hitTest function. At the bottom of this post you will find links to a flash that I made to test the hitTest function. All it is is a gray square that you can move around with the arrow keys and a blue square that acts like a wall. Why is it that when you move the gray square to the blue square and they supposedly “touch” you sometimes have a blank space in between? I’m testing this because I’m making a game that basically revolved around the hitTest and sometimes when it hits a wall it has a little white space in between. Any tips and suggestions are welcome. Thanks in advance!
'Warhell
square is able to go pass the blue square. Is there any way to fix this? Thanks agian.
P.S: One more thing, when you move the gray square against the blue square in the corner sometimes the gray
.swf: <A>http://www.geocities.com/xwarhellx/hit_test.
swf
.fla: <A>http://www.geocities.com/xwarhellx/hit_test.
fla