[Flash] production of baby dress-up games

Source: Internet
Author: User

Production of baby dress-up games

By emilmatthew 06/04/15

First, the Friendly reminder: This article is suitable for beginners.

Recently, some netizens emailed me to ask me how to do a game such as the MM game. I thought about it. Let's simply do it.

I am going to create a demo program for the baby dress-up.

First, you need to take a Q-a photo of your baby.


Then, you need to process a hat and make sure it has different colors (very simple ).

Name the hats of different colors cap1 and cap2.

 

The rest is to write code like this.

_ Root. cap1.onpress = function (): void

{

This. startdrag (true );

}

 

_ Root. cap1.onrelease = function (): void

{

This. stopdrag ();

}

 

_ Root. cap2.onpress = function (): void

{

This. startdrag (true );

}

 

_ Root. cap2.onrelease = function (): void

{

This. stopdrag ();

}

When you change a lot of clothes, you only need to copy-paste.

 

I personally think that the key to this kind of game is the art, especially to attract the eyes of MM people ~~~~

 

Source File Download:

Http://emilmatthew.51.net/EmilPapers/06_13baobao/code.rar

 

If you cannot directly click to download (or browse), paste the downloaded (or browsed) hyperlink to the address bar of the browser (myie or greenbor.pdf is recommended) and press Enter. in case of any exceptions, you should be able to download it now.

For details, refer:

Http://blog.csdn.net/EmilMatthew/archive/2006/04/08/655612.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.