Search This Blog

Wednesday, February 23, 2011

Adding Keyboard Input

Learning how to make things move using the keyboard on Flash wasn't that hard. On the wiki page they had all of the codes so I just copied and pasted it to actionscript and it moved. I decided to make a scene in my game similar to the mini game. It's called fumble. It is where there is an offender and a defender and you are supposed to recover the loose ball (fumble) before the defender catches you. There are no limits on where you can go but you don't want to go too far off the screen because you will not know your way back to where you can recover the ball for points. If you do get too far away and you don't know your way back, you have no other choice but to let the defender tackle you and give up one point. It will put you back onto the main stage immediately and you can pick up many points that way. Just make sure that when he comes back to avoid him. If he catches you in the spot it resets you to, it's game over. You have to refresh the page or you can press the main menu button at the bottom. You can press the main button menu at any time you want. I will make lots of changes to it including adding acutal football players to the screen that are colored into the two teams colors. I think the background will be black instead of the blue background I will be using on most of my pages. Anyways, here's the incomplete scene that still makes a pretty fun game.

No comments:

Post a Comment