Friends, would like to test your memory about it? Do not bother to find those boring questions themselves, we can use Flash MX to create a fun memory test game, can entertain themselves, but also study their own memory.
This memory game is shown, the game interface is simple, but playing well is not easy, unless you have a good memory. It's probably more familiar with all games are played, the game 12 of the same disc, each disc is hidden below a pattern, 12 patterns 22 were six pairs of the same, but the game is aimed at the fastest Open the disk speed to find the same pattern completion. The design concept of this game is that when the mouse clicks to open a continuous matrix of the two discs, the pattern of the before and after the show to judge, if the same patterns are removed from the matrix pattern and the above two disks, if different the pattern with a disc will re-cover, and this test everyone on the location of each pattern memory, only accurately identify all of the six pairs of images, the game be considered victory. The pattern shows the effect of production and cover up is very simple animation using Motion transition on the line, and determine whether or not the same pattern is carried out with the Action.
Flash Memory Game (9s51.tif)
Here we learn how to make this game, concrete steps are as follows (Editor's note: In order to facilitate the Flash beginners, this Flash game and its source files can be downloaded in http://www.pcdigest.com/download, we can modify . fla file to quickly create a memory game with their own style).
1. We need to prepare 6 different patterns, they can find any, but some of the best color and shape with similar patterns, so playing up only confusing, difficult to improve the player's resolution to enhance the game fun. Here we prepared as shown in 6 different designs, import them into Flash, were kept for six graphic symbols (Graphic).
6 different patterns (9s52.tif)
2. We have to prepare a game disc cover image patterns, this can draw their own, but its size should be slightly larger than the previous step we use patterns in order to be able to completely cover them. To this disk image into Flash, it saved as a button symbol (Button).
Disk graph (9s53.tif)
3. In the game, due to the show to find a pair of each disk and the remaining patterns on the number, it needs to make six figures. Figure were produced from 1 to 6 of graphic symbols (Graphic).
6 different digital map (9s54.tif)
4. Now we must make the game disc and animation design, and the corresponding animation major players in the various mouse operations such as select, click and so on. Pattern in which six pairs of animation production is the same, so we tell them this is only a pair of production.
First of all, in Flash, create a new movie clip symbol, named balls1. Under the symbol editor of the new two layers, the first layer in the first 7 to 11 set up disk to nothing in the motion by the animation, in the first 21 to 25 set up disk from the non- Motion to some animation. In the second layer in the first 7 to 12 to establish a pattern animation from none to some, from 13 to 20 to establish a pattern of amplification results, from 20 to 25 established a pattern of motion by a to no effect.
Animated timeline (9s56.tif)
Using the same method to build two new layers, according to the above steps to produce exactly the same motion effect, however, the location of disc and patterns with the above different (position we custom), preferably in a rectangular range of 4 脳 3 inside.
4 脳 3 rectangular area (9s55.tif)
Then we give the animation to add Action.
Create a new layer, named timeline, this game is all of the Action are concentrated in this layer, to facilitate editing and modification.
In the first one to add as to gotoAndStop (5);
file / / skip the first five, followed by the first five we should add "stop ();", beginning of the game is stopped.
In the first two added as the gotoAndStop (3);
In the first three add as for the stop ();
In the first four to add as to gotoAndStop (3);
Add in five as the stop ();
In the first six to add as to gotoAndStop (5);
Respectively 12 and 31 added as for the stop ();
file / / run this game frame stop playing.
tellTarget ("../ balls3 ") (
nextFrame ();
)
tellTarget ("../ balls4 ") (
nextFrame ();
)
tellTarget ("../ balls5 ") (
nextFrame ();
)
tellTarget ("../ balls6 ") (
nextFrame ();
)
tellTarget ("../ balls7 ") (
nextFrame ();
)
[Next]
file / / first were the designated "main scenario" in the balls3 to ball7 5 Movie clip, and then run separately for each Movie clip current frame of the next frame.
Respectively 13 and 32 insert the key frame, and then add the following Action.
play ();
file / / video frames continue to run this play.
tellTarget ("../ balls3 ") (
nextFrame ();
)
tellTarget ("../ balls4 ") (
nextFrame ();
)
tellTarget ("../ balls5 ") (
nextFrame ();
)
tellTarget ("../ balls6 ") (
nextFrame ();
)
tellTarget ("../ balls7 ") (
nextFrame ();
)
file / / are designated for the main scene balls3 to ball7 5 Movie clip, run each Movie clip current frame of the next frame.
Respectively 25 and 44 added as the gotoAndStop (5);
Respectively 58 and 77 add the following as.
tellTarget ("../ balls8 ") (
nextFrame ();
)
file / / balls8 Mc num is the instance name, used to control the game disc on the number of remaining changes, skip to the next frame when the figure by 1.
Respectively 63 and 82 added as the gotoAndStop (3);
Where all of the above as the added frame is not random, but with the disc and the pattern where all the frames corresponding to Motion, so as to call the game different Motion.
Finally, in accordance with the above methods, then the production from balls2 to balls6 the other five similar Movie clip video clips, difference is the pattern behind each pair of disk Otherwise the same.
5. Here we have to make a few changes in mind the effect. First create a new Movie clip movie clip, insert the six key frames, respectively, well ahead of the six digital symbols by inverse continued into the first keyframe 1 to 6 (the first key frame 1 put the number 6 ... ... 6 key frame put the number 1). Then add a layer named timeline, the same key frame insertion of six consecutive, and to each key frame are added Action to "stop ();", to run into each video frame are stopped.
Count changes in the timeline (9s57.tif)
6. The following is the game to make the main control Movie clip video clips, this video clip for the overall control. Create a Movie clip movie clip, named "the main movie." Movie clip in the movie clip into the editing state, the new six layers, respectively, to do a good job in front of the balls1 to balls6 were placed on six patterns among the six layers, arranged in a rectangular 4 脳 3 square .
4 脳 3 rectangular matrix (9s58.tif)
Add a new layer, the symbol num onto the editing area on the right place, at the first frame add the Action to "play ();", final timeline will be extended to all layers to seven.
Overall control of the time line (9s59.tif)
7. Now the final task - the layout of the main scene. Very simple, just the movie clip Movie clip "main movie" onto the main scene in the right place on it, and then save the file, run the test and export. Swf file.
Test game (9s10.tif)
This point, a simple and fun games on Flash memory, well, if you are interested, you can increase it based on features, such as increasing the number of games in the pattern of the increase or limit functions in mind when . Said the first few, quick start game!
相关链接:
CSS In The Minimum Height (min-height) Of The Magical Effect
Input why the war continued?
Embedded option: the incentive for interest rate risk
Pao GS-816FC Fiber Disk Array
Comment Dictionaries Education
U.S. stocks comment: Sun die-hard
Premier Trace And Ping Tools
How The Blaze Was Accompanied By Low Encirclement
"China Computer Business 500" award, awarded the two winning BenQ chase THE deer
3GPP Converter
3GP to FLV
Install microsoft works 2
M2TS To MKV