A few months ago I wrote a series on character movement. As a part of that series we discussed developing the movement for a spaceship shooter like Asteroids. Since then I’ve had multiple requests for how to make the ship fire bullets. No problem! This one is simple, super simple, you may smack yourself to the head repetitively with an iron stick for not thinking of it. But if you don’t have an iron stick, no problem, we’ll get this all squared away and you’ll be on your way to solving this sort of issue with ease from now on.
What good is smoke? Let’s think for a second. What produces smoke? Failing mechanical equipment, grenades, guns, volcanoes, factories, fires, vehicles, and probably a million other things. So does your Flash game need smoke, well, that’s for your to decide. But the fact of the matter is we can produce some rather convincing smoke with [...]
In the last tutorial we created a custom cursor, in this tutorial we’ll address some issues that will make our cursor a lot more useful! Today we’ll learn to make the cursor disappear when the mouse leaves the flash window area and reappear on the return. At the same time we’ll set it up to react correctly during a right click and most importantly maintain it’s position at the top of the stage. This way newly added MovieClips will not be able to appear on top of our cursor.
This is the first series on As Gamer that will take you through the basics of ActionScript 3.0 Development of a Flash Game. The goal is to give you a fundamental overview of using Flash CS3 or better to develop a game. If you are not a programmer follow along closely and I’ll try to make everything relatively simple. However, if understanding the reasoning behind conditional statements is not obvious, you may want to look into purchasing a programming book at your local bookstore. That said, this series will be very simple, but extremely effective at teaching you the principles behind the average flash game.
So you just finished your first flash game, it’s excellent, at least you think so. I mean you put hours on top of hours into it. Your eyes have been bloodshot and you’ve pulled your hair out more than once. Needless to say, you’ve worked hard and you are incredibly proud of it (But your ego is in check, you’re not arrogant or anything ). So you send your game off to be spread virally around the internet and it’s doing amazing!!! You’re making all kinds of money on your advertising, then a week later some guy comes out with your game and new graphics… better graphics. But it’s the same game, seriously to the last detail it works almost the exact same way. You’re the victim of someone decompiling your game and stealing your source code! You’re game loses popularity and you just lost a lot of hard work and money!
Movement is extremely important for any game in which you take the role character or object. Bad movement can completely ruin your game, and good movement can make it feel well polished. Of course, movement is just one part of your game, but it’s the foundation of everything your character will do, so you need to give it some attention.
If you like using MovieClips to animate your artwork in flash then this is a great method for doing it. Not only for Flash Games but for any project in which you have an object that needs to undergo different animations based on conditions. However, this will work perfectly for our Flash Game. So this time in the series we are going to make our Stinger Ship EXPLODE when it gets hit by a bullet.
Alright so what’s this tutorial about? Well let’s say your game has enemies that on death splat blood all over the place… sounds wonderful. So maybe these enemies are aliens with green blood, but a couple of them need to have blue blood, and well, maybe, another one should have yellow. What do you do? Copy the same movieclip over and over each time changing the color of the blood? No… there’s a much easier solution for handling color changes in ActionScript. (If you don’t like the blood reference, imagine a cutesy dress up game where you want to change the colors of the outfits)