[AS3] Dragging problem
Hi there,
I have a problem with using the drag property, hittesting another sprite. I'm creating a game which need a strict hitTest on another sprite.
So my game is about bombs that pop up every second, pink and black. The user needs to drag them to a certain field which belongs to the bomb color (obviously pink and black). The bombs bounce back if they reach the end of the stage, but also, when they hit a field on the egde, it bounces in an other direction. Just some simple physics. If you DRAG the bomb in the right field, your scores increases, the bomb's velocity will be set on 0 and the mouse will be disabled for that perticular bomb. So far so good it all works.
My problem is that when I drag the bomb half over the field the bomb's velocity won't stop, they score counts one up, and the mouse is disabled.
I can't show any pictures or send the link to the game since I don't have 50 posts yet.
Hope my problem is clear,
Thanks in advance.
|