Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Tracing a alphabet word in as3

Community Beginner ,
Apr 20, 2016 Apr 20, 2016

maxresdefault.jpg`

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

TOPICS
ActionScript
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2016 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2016 Apr 21, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 22, 2016 Apr 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 23, 2016 Apr 23, 2016

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 .Capture_problem.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2016 Apr 23, 2016

oops, you need to use the bitmapdata's hittest.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 24, 2016 Apr 24, 2016

can u plz say little more clear .....

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2016 Apr 25, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 23, 2016 Apr 23, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 25, 2016 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 25, 2016 Apr 25, 2016

s but ..can u plz give little more clear

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2016 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 26, 2016 Apr 26, 2016

k thanks for help

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 27, 2016 Apr 27, 2016

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 27, 2016 Apr 27, 2016

Is the Time magazine app not what you were looking for? Seemed a good fit to me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 27, 2016 Apr 27, 2016
LATEST

s bro ...do you have any idea what i am looking for

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines