Copy link to clipboard
Copied
`
i try to create a game like tracing a alphabet like above image and how to detect that they traced completely or not ...i dont know how it is possible ...i have no idea ..anyone plz help me for doing this ...
Thanks in advance
Copy link to clipboard
Copied
the easiest way, i can see, would be to place several alpha=0 objects over each letter. all objects from one group would need a positive hittestojbect with each object and the other (an object behind the letter) would need a negative hittestobject.
you would need to convert the drawn path to an object to use in the hittests.
bottomline: this would require advanced coding skills.
Copy link to clipboard
Copied
can u pls help me for convert the drawn path to an object to use in the hittests. ..
Copy link to clipboard
Copied
i don't see how i can help you do that via the forums, and the only free help i give is via the adobe forums.
if you want to hire me to help, send an email via http://www.kglad.com > contact
Copy link to clipboard
Copied
can u plz clear this doubt ...
when i click and drag from specific movieclip hit 1 corresponding to hit2 hit3 hit4 hit5 hit6 hit7 hit8 after moving hit8 its showing hit9 hit 10 is hitting but i am not moved the line over hit9 hit10 ..i dnt knw y ..i will little bit clearly show in the below fig .
Copy link to clipboard
Copied
oops, you need to use the bitmapdata's hittest.
Copy link to clipboard
Copied
can u plz say little more clear .....
Copy link to clipboard
Copied
use the bitmapdata's draw method to obtain bitmaps of the user's tracing and your dots. then use the bitmapdata's hitTest method to make sure the tracing 'hits' each dot.
Copy link to clipboard
Copied
Thanks ....is there any sample file having as like which i want for my reference for doing this thing
Copy link to clipboard
Copied
A couple of years ago Time made this little app: Apple Company Logo Memory Test: See How Well You Remember Brands
Seems to be real close to what you're looking for.
It's not trivial, but it's not too hard to duplicate in AS3 either. I did it by letting the user draw the line. You then scale the user image to match the image being traced. From there you analyze both the tracing image and user image using a grid scheme - break up the image into n x n rectangles and see if there's a pixel in that space. If there is the grid space is filled. Once you have that you simply compare the two grid arrays to get a matching percentage.
Copy link to clipboard
Copied
s but ..can u plz give little more clear
Copy link to clipboard
Copied
i don't know how to be more clear about it without doing the coding myself. i can do that, but that would take me an hour or two.
if you have specific questions about how to use the hittest or draw, let me know. i can answer those in the forum.
but like i mentioned the task you're undertaking will require some advanced coding skills. if you want me to do it for you, you can hire me to help.
Copy link to clipboard
Copied
k thanks for help
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
Is the Time magazine app not what you were looking for? Seemed a good fit to me.
Copy link to clipboard
Copied
s bro ...do you have any idea what i am looking for
Find more inspiration, events, and resources on the new Adobe Community
Explore Now