dcsimg
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Dressupgame

  1. #1
    Ryan :D ryanp321's Avatar
    Join Date
    Nov 2007
    Location
    Wallasey
    Posts
    292

    Dressupgame

    Hi, I've been spending a while on this. Because i thought.. ok, a dress up game.
    Cant be the hardest thing in the world... but ^_^
    its gotten pretty complex.
    Been spending about , a 2 weeks on this now and, I've gotten to a good stage i think. (for me anyway)
    By the way, this is all a demo.
    I've got some clothes. buttons, different areas. like, dressing room.
    Modeled .. design thing.
    But, I've made a mistake some wear cause now ^_^
    When I'm on one section adding clothes, and i press the button to go to the next. the other clothes end up .. leaving.

    Here is the current swf (a link to my site)

    http://www.ryan-paterson.co.uk/joefulldressupgame.swf

    Joe is my mate xD
    i took his head and put it on my models body.
    His head was used for a previous test of dressup games which is
    http://www.ryan-paterson.co.uk/joegame.htm

    Help will be very appreciated
    thank you

  2. #2
    Ryan :D ryanp321's Avatar
    Join Date
    Nov 2007
    Location
    Wallasey
    Posts
    292
    Oh yeh.
    I have added only actionscript for the clothes to be dragged.
    Im open to all actionscript that can help aswell
    Thank you.

  3. #3
    Senior Member
    Join Date
    Jun 2007
    Location
    Planet Earth
    Posts
    358
    You can just hit "edit" if you want to add more to your post.
    America!

  4. #4
    Senior Member mandissected's Avatar
    Join Date
    Jan 2005
    Location
    Berwick - England
    Posts
    338
    Am I right to assume each section is within it's own movieclip container?

    If thats the case you just need to use a mask which you apply and take off to each movieclip 'layer' to change sections.

  5. #5
    Ryan :D ryanp321's Avatar
    Join Date
    Nov 2007
    Location
    Wallasey
    Posts
    292
    Yeah i know ^_^ i just find quick post is allot more convenient.
    but if it annoys you. I'm sorry.

    thank you for the help :]
    im still not 100% on , where you want me to apply the mask.
    If you don't mind , can you tell me please?
    If you don't have the time, thanks anyway though.

    EDIT : ;]
    each, button links to its own key frame.

  6. #6
    Senior Member mandissected's Avatar
    Join Date
    Jan 2005
    Location
    Berwick - England
    Posts
    338
    I'm not sure on the solution if you are using different key frames for each section.

    The way I built one it was all within 1 key frame. Each section had a main moviclip (eg shoes_main) which held all of it's contents (eg shoes1, shoes2 etc). Each movieclip had a mask that only revealed the area over the doll, that way whether it was selected or not the items on the doll would still be visible. When you clicked on a button it removed the mask for that clip revealing all items on that clip (while re-applying the mask to the other sections and hiding them).

    I hope that helped but if it was unclear feel free to ask any questions.

  7. #7
    Ryan :D ryanp321's Avatar
    Join Date
    Nov 2007
    Location
    Wallasey
    Posts
    292
    Im getting there xD
    lol. I'm just quickly now making a little one.
    with a stick man.
    N i've got contents in the 1 movie clip.
    and within the movie clip the buttons to the next section.

    But im not sure how to apply this mask, or how it works to be honest ^_^

    Thanks btw

  8. #8
    Wait- what now? tidenburg's Avatar
    Join Date
    Dec 2005
    Posts
    1,472
    umm. I'm not sure but try adding:
    movieclipnamehere.swapDepths(_root.getNextHighestD epth())
    I've not tested it but put that into the code where the startDrag happens...
    "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."

  9. #9
    ism BlinkOk's Avatar
    Join Date
    Aug 2001
    Location
    , location, location
    Posts
    5,002
    this is a fairly simple, multi frame dressup game.
    http://img251.imageshack.us/my.php?image=v1sb2.swf
    there are a few things you need to make sure you are consistent with if this method is to work properly;
    1. garments need to be centered over a portion of the garment not a gap in the garment (ie. the pants need to be centered up near the waist, not between the legs)
    2. you need to use the true option when using startDrag()
    3. you can only place ONE item per frame
    Attached is the mx .fla
    Attached Files Attached Files
    Graphics Attract, Motion Engages, Gameplay Addicts
    XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro

  10. #10
    Ryan :D ryanp321's Avatar
    Join Date
    Nov 2007
    Location
    Wallasey
    Posts
    292
    thank you very much
    i understand alot.
    but not all :]
    but i'll work it from the code.
    thank you very much everyone !

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