![]() |
|
The pixel art might get some rotation artifacts/jaggies, but nothing too severe or distorted, even if it did, it's better than the barrel not moving at all, though, right? One solution is to use the .png format with an alpha channel to anti-alias the edge of the sprite, that eliminates the rotation artifacts. In fact, I suggest using the .png format for everything, unless you really want to keep the 'pixel-art look.'
The same technique will work if you apply it to a soldier's arms holding a gun, if you decide to go with a soldier.
Another option is to pre-draw the barrel or arms at various angles. For example, if you pre-drew, say 90 frames (a lot, I know), then you can take the rotation value from the code I posted and use it to say soldiersArms.gotoAndStop(angle/4), where 'angle' is the rotation angle. And the divide by 4 is there because there's only 90 frames.. if you drew 360 frames you wouldn't have to do that, but who wants to draw 360 frames..
Lot's of different ways to go about it, depending on what you want.
I tell you all this 'cuz, I'm developing some flash games myself and these are the things I've figured out over time, so I thought I'd save you some trouble, as a fellow developer/artist :o)
Thank you so much :P. Wouldn't the pixel art be distorted by this though? The tame will probably be changed into a soldier sprite or something.
I like all the pixel art except the explosion animation is a little choppy. Take a look at Metal Slug explosion sprites for inspiration. Also, like mentioned, the tank looks a little wimpy and could use some sprucing up. Interesting that the tank is able to jump?? XD
Here's how to make a barrel that rotates with the mouse:
1.) Open Flash and make a long horizontal rectangle with the rectangle tool.
2.) Select it and press F8. Click the middle-left registration node (so it pivots from there) then make it a Movie Clip and press OK.
3.) Right-click it and open actions and paste this line of code:
onClipEvent(enterFrame){ _rotation = (Math.atan2(_root._ymouse-_y, _root._xmouse-_x))/Math.PI*180;}
Instant rotating barrel!
@ slym: No problem, just helping out a fellow code poet.
Nice. pretty fun to play too. I'd like to see the turret move with the direction in which you're currently shooting, but it was generally pretty fun
@Jungle Rain: Thank you for reporting the error Will be fixed in no time.
@Onek: The game gets very very hard very fast, but the first couple of levels are quite simple and easy .
You forgot to set the highscore variable to 0 when you declared it. When I play it says "undefined" where it's supposed to show the highscore.
Cool game :)
The explosions don't always happen when a bomb is shot, and I somehow got a bullet stuck in the top left corner which killed the planes coming in on the top left :P
Yeah due to Eden Online release dates and stress with the graphics and work for Eden, Total Assault really hasn't had much breathing space. When Total Assault is fully released, we will most likely have all the features you mentioned, with multiple types of planes, different plane health and behavior, more missiles, more vehicles you can use, tower defense-like abilities (placing NPC's that fire at enemies as well), and not to mention a real campaign story, more exciting first couple of levels (they are quite boring and do cause players to quit). Sound effects, music, more bad-ass explosions, and much more interesting content such as achievements, shop, vehicle customizations. Of course all of this will happen once we find a better Actionsript coder :P.
Cool pixel art, neat colors.
The user tank is so wimpy looking. It reminds me of that car Homer Simpson designed on that episode where he discovered his long-lost brother was a car manufacturer. It's not protagonist material.
Same explosion used for plane and bomb hitting ground, that's overly cheap.
Bg is very boring.
Adding side-scrolling functionality would be great, but is probably beyond the scope of the project.
I'm shocked the tank's barrel doesn't pivot as you aim. Every tank game does that.
After a full minute of being able to sit in the middle of the screen, not moving, and endlessly spray to the left and right, and destroy every plane before they even fully entered the screen, I got borded and quit. One ides is make baddies take multiple hits.
Pretty goodlooking! Made in MMF2 and built as Flash? I am a MMF2 developper but haven't tried making a flash, think i'll wait until te official extension has arrived.
Ooh the tileset looks so damn awesome!!! And even though the sky doesnt have detail on the bottom and middle part, it looks alive! Damn nice!