A Flash Developer Resource Site

Page 1 of 3 123 LastLast
Results 1 to 20 of 45

Thread: SitePal - how does the head turn?

  1. #1
    Senior Member bratok's Avatar
    Join Date
    Jul 2002
    Posts
    229

    SitePal - how does the head turn?

    Hi,
    I've been wondering, how does SitePal make it's character turn their heads?
    The nose, mouth, eyes, as I observed, are only moveing... but the head ( and hair ) itself ? ... do you think this are just different frames or it was made in programming so that one side scales, while the other shrinks? What do you think?

    Thanx!
    Last edited by bratok; 10-26-2006 at 04:59 PM.

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    I'm pretty sure its a stack of concentric shapes that just bunch up on one side or the other.

  3. #3
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    Quote Originally Posted by jAQUAN
    I'm pretty sure its a stack of concentric shapes that just bunch up on one side or the other.
    thats what i think
    Nothing to see here, move along.

  4. #4
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    everytime I see her she looks more skank.

  5. #5
    An Inconvenient Serving Size hurricaneone's Avatar
    Join Date
    Mar 2001
    Location
    You know where
    Posts
    1,918
    Quote Originally Posted by Frets
    everytime I see her she looks more skank.
    Your comment sounds that much emptier for knowing that you'd hit that given half a chance.

    Stand by for emergency synapse rerouting

  6. #6
    Senior Member bratok's Avatar
    Join Date
    Jul 2002
    Posts
    229
    edit.
    Last edited by bratok; 10-28-2006 at 03:32 AM.

  7. #7
    Senior Member bratok's Avatar
    Join Date
    Jul 2002
    Posts
    229
    Thanks guys for your answers!

  8. #8
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    Someone get the one that looks a little like Britney Spears / Helen Hunt some SPF-15!
    Last edited by Genesis F5; 10-28-2006 at 04:51 AM.

  9. #9
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    This is how it works:



    As you can see from my image, The actual face is the only part that needs to appear "3D" To achieve this, the face is drawn and split into two pieces length-wise.

    Here is a face I made, split, and then scaled:


  10. #10
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    Here's an example SWF I made to demonstrate the technique when it's all applied. The mouth, nose, and eyes / eyebrows are all one movie clip that moves along the center divide. The hair is layered behind the face half and on top. To give it extra 3D umph, the bangs are also placed on the mouth layer.

    (Flash removed - no longer hosted)

    Note: In the actual Sitepal flash, the head also rotates a little when looking up / down. I'll try to put that feature in a little later. I had to comment it out for now since it was acting a little screwy.
    Last edited by Genesis F5; 02-17-2007 at 03:40 PM.

  11. #11
    Self-portrait mark_my_words's Avatar
    Join Date
    Aug 2003
    Location
    Internet-land.
    Posts
    255
    Quote Originally Posted by Genesis F5
    Here's an example SWF I made to demonstrate the technique when it's all applied. The mouth, nose, and eyes / eyebrows are all one movie clip that moves along the center divide. The hair is layered behind the face half and on top. To give it extra 3D umph, the bangs are also placed on the mouth layer.

    (Flash removed - no longer hosted)

    Note: In the actual Sitepal flash, the head also rotates a little when looking up / down. I'll try to put that feature in a little later. I had to comment it out for now since it was acting a little screwy.
    lmao @ the dialogue in that flash example
    Last edited by Genesis F5; 02-17-2007 at 03:40 PM.
    Artificial Memories v0.9.2b
    "Preserving life's precious moments and making new ones"
    © 2009 MemoryCorp - A Walmart company

  12. #12
    Hairy Member robbmcaulay's Avatar
    Join Date
    Dec 2001
    Location
    Edinboro, yo!
    Posts
    1,596
    You made that Genesis? Pretty good...
    "Wah wah wah Dorothy Parker wah wah wah" - hanratty21

  13. #13
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    Yes, I did. Thank you. It doesn't take that long at all. You just have to create a main containing layer (I call "face"), then inside of that, make two movie clips that each contain a face half. I call them "face_left" and "face_right." You can also create a third movie clip that contains the mouth / any frontal bangs / beard / mustache / glasses / and nose. Inside of the two face halves is the eye movie clip called "eye" and inside of that, hidden behind a masked layer of the eye background is the eyeball called "eyeball." After you have that all set up, it's pretty much just adding the code.

    I'll post the FLA as soon as I finish optimizing the code.

    Here's my latest example with President Bush. I wanted to try doing a photograph of a real person, and it worked quite nicely.

    (Flash removed - no longer hosted)
    Last edited by Genesis F5; 02-17-2007 at 03:41 PM.

  14. #14
    Wait- what now? tidenburg's Avatar
    Join Date
    Dec 2005
    Posts
    1,471
    OMG! that's excellent!
    "I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."

  15. #15
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    Now's it excellent. He blinks!

  16. #16
    Senior Member bratok's Avatar
    Join Date
    Jul 2002
    Posts
    229
    Genesis F5, WOW! George W is truly excellent! And a great Thank You for all the info you provided.
    By the way, maybe there is a change you'd be interested in a little freelancing in that direction?
    Last edited by bratok; 10-28-2006 at 02:24 PM.

  17. #17
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    Thank you very much. It was no problem at all. I forgot how much fun it is to help people with Flash work. As soon as I can get the latest Flash and get caught up with the new implementations, I'll get back to the help forums.

    I don't know about freelancing yet. I might give it a go sometime. This was my first time trying anything like this, so it still needs a little fine tuning.

    Check it out now. Bush is ready for Halloween.

  18. #18
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    That was great.

  19. #19
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    see thats the kind of code challenge dudeqwerty and I were talking about.

  20. #20
    Senior Member Genesis F5's Avatar
    Join Date
    Jan 2002
    Location
    Unallocated memory
    Posts
    1,845
    A code challenge would be cool.

    Here's my last revision before I release my special one.

    (Flash removed - no longer hosted)

    This one illustrates bangs (bandana knot) and how that looks when you do it. For being such a simple technique, it's quite effective.
    Last edited by Genesis F5; 02-17-2007 at 03:39 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center