Thursday, January 6, 2011

Adding Animation

I had an easy time adding animation to my sample game. I was easily able to add motion, creating the effect of a ball bouncing toward the screen before bounding off. Unfortunately, the same simple concept doesn't apply to my actual game. I forgot to add the tweens as I was originally drawing the scenes, so I am lacking the necessary space to add a full motion tween. The effect I was hoping for was to have pieces come together to form a cell phone (the point of my game). Instead, the user now clicks to add the pieces. A word of caution, treat the animation as part of the art when drawing your scenes, go ahead and add it. If I intend to make a motion now, I have to manually shift all of my frames, something I don't intend to do. If I take Game Design II, I will be willing to attempt this. For now, however, I will stick to the game the way it is, clicks and all.

Game Design II?

I may be taking Game Design II. In this case, I will be continuing my game, though it is nearly complete as it is. I intended to take Digital Imaging, but the prospect of having the correct software is looking more and more grim. Instead, I will be attempting to add more motions to my game, giving it a more complete feel. This unfortunately means that I will also have to scrap the ending of my current game, but I intend to add more motions and action, giving it a more complete feel.

Error In Timer

As I wrote before, the actual creation of a timer is not challenging. I am having an issue, however, on stopping the timer. I have inserted the correct stop codes, but obviously something is wrong. Whenever someone succeeds at finding the object and proceeding to the next screen, the timer continues to run (though I cannot see it), eventually forcing my player to fail at the game. For now, I have changed my timer to read 100 seconds so that the player doesn't fail even if they win. I will update if I ever get it fixed.

Adding Music

Adding music, like adding a timer, is not too challenging. The best website I have found is photoshopsupport.com. It helps much more than the wiki. Watch the short video and it should tell you all that you need to know.(I made background music to run throughout my game.) Create a layer above everything except actions and make a keyframe in the first frame. Select the frame, and go to your frame properties (conveniently labeled Properties). If you have your properties on the side, you can find the music there and easily add it to the frame. Its as simple as selecting your song.

Adding A Timer

I am by no means an expert at flash, but I have found out quite a few things on my journey through Globaloria. Lately, I have been working on my timer while wrapping up my game. For starters, don't always listen to the Globaloria wiki. The website often recommends that you go search for information, and they're right. Some sites are much more helpful.
Adding a timer is not hard at all. In order to ensure the presence of a timer, make sure to add the timer on the top layer. After drawing your text box in the given location, make sure you select dynamic text and click the embed button (I use CS5). For a timer, select numerics when the window pops up. Then, you can rip the code from the wiki, supplying your own numbers and adding a stop code at the end. When telling the countdown timer where to go when it runs out, use a frame number instead of the title, for it makes life simpler. The only thing that still eludes me is how to make my timer stop if you move on to another scene while time is ticking. If I ever figure this out, I'll let you know.