Skip to main content
vigneshvicky
Known Participant
April 21, 2016
Question

Tracing a alphabet word in as3

  • April 21, 2016
  • 3 replies
  • 2152 views

`

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

This topic has been closed for replies.

3 replies

Inspiring
April 25, 2016

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.

vigneshvicky
Known Participant
April 26, 2016

s but ..can u plz give little more clear

kglad
Community Expert
Community Expert
April 26, 2016

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.

vigneshvicky
Known Participant
April 23, 2016

Thanks ....is there any sample file having as like which i want for my reference for doing this thing

kglad
Community Expert
Community Expert
April 21, 2016

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.

vigneshvicky
Known Participant
April 22, 2016

can u pls help me for convert the drawn path to an object to use in the hittests. ..

kglad
Community Expert
Community Expert
April 22, 2016

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