PDA

View Full Version : hittestobject help


dev.mostafa
04-05-2008, 12:55 AM
:confused:

i want to make simple game

game idea is to draw 5lines connected through 9 balls

as shown

http://www.meamargroup.com/9_circle_with_5_lines.rar

in this code draw 5 lines connected

but when no lines goes over ( cr1 )movieclip

it traces that there is line above it

plz hlp me

largo
04-08-2008, 06:09 PM
could be you need some complex Collision Detection insted of hitTest because hitTest can be pretty limited...

you could check out this tutorial: http://www.kirupa.com/developer/actionscript/advanced_collision.htm

dev.mostafa
04-09-2008, 12:56 AM
thank you for help but im still have problem

if you saw my game

i havent 2 shapes i have line will be drawn at run time

i think the problem isnt in ittestobject

i think there is some ways may be different for my case