To create a new movie in Flash CS5, choose File, New, and then you are presented with a list of file types. This movie clip contains all the cards and even a frame that represents the back of the card that we must show when the card is face down.Ĭreate a new movie that contains a single movie clip called Card. Using the single-symbol method, we need to have at least one movie clip in the library. You can also easily grab an updated movie clip from an artist with whom you are working. You can quickly move between and edit all the frames in the movie clip. This method has major advantages when it comes to updates and changes to the playing pieces. That way, if you want to change how the hearts look across your whole deck, you can do this by just changing the heart symbol. For instance, if your playing pieces are deck of poker cards, you might place the four suits (spades, hearts, diamonds, and clubs) in symbols and use them in your main deck symbol on the cards. Shared graphics, such as a border or background, can be on a layer in the movie clip that stretches across all the frames.Įven the single-symbol method can use many symbols. Each frame contains the graphics for a different card. You would have one symbol, a movie clip, with multiple frames. The second method for working with a set of playing pieces, such as cards, is a single-symbol method. If the artist is a contractor, it could run up the budget as well. You'd need to do that 18 times for 18 different symbols.Īlso, if you are a programmer teaming up with an artist, it is inconvenient to have the artist update 18 or more symbols. For instance, suppose you want to resize the pictures slightly. The multiple-symbol method still has problems when it comes to making changes. Or, it could be useful if the cards are being imported into the movie from external media files, like a bunch of JPG images. Using multiple symbols, one for each card, can prove useful if you are picking cards from a large group-like if you need 18 cards from a pool of 100. Of course, you can get around this by creating a background symbol that is then used in each of the 18 card symbols. So, you would have 18 copies of the border and background. For instance, each card would have the same border and background. One problem with this method is you are likely duplicating graphics inside of each symbol. The first method is to create each card as its own movie clip. There are two schools of thought when it comes to making game pieces, like the cards in the matching game. Because the cards need to be in pairs, we need to figure out how many cards are displayed on the screen and make half that many pictures.įor instance, if we want to show 36 cards in the game, there are 18 pictures, each appearing on 2 cards. Placing Interactive ElementsĬreating a matching game first requires that you create a set of cards. We also need to turn cards back to their face-down positions when a match is not found and check to see when all the pairs have been found so the game can end. Then, we take the player's input and use that to reveal the pictures on a pair of cards, and we compare the cards and remove them if they match. To do this, we need to shuffle the deck to place the cards in a random order each time the game is played. To create a matching game, we first work on placing the cards on the screen. It is also easier and less expensive for the game developer to create different pictures for the cards with virtual cards rather than physical ones. If they don't match, they are turned face down again.Ī good player is one who remembers what cards he or she sees when a match is not made and can determine where pairs are located after several failed tries.Ĭomputer versions of matching games have advantages over physical versions: You don't need to collect, shuffle, and place the cards to start each game. When the two cards match, they are removed. Then, try to find matches by turning over two cards at a time. The idea is to place pairs of cards face down in a random arrangement. Matching games are simple memory games played in the physical world using a simple deck of cards with pictures on them. To build our first game, I've chosen one of the most popular games you can find on the Web and in interactive and educational software: a matching game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |