ActionScript 2.0 :: McGiver's Exploding Scenery (disappears With The Bullet)
Aug 26, 2004
McGiver's submission to the Flash Game Contest was his footer, a very cool blast-a-tank game. In his game if you hit some scenery it dissapears with the bullet. That is SO COOL! How did you do that? McGiver's Blast a Footer: [URL]
View 2 Replies
Similar Posts:
Nov 24, 2008
I'm trying to make my platform game character shoot a gun, my character and gun are one movieclip and the bullet is another. The bullet mc starts on a blank frame with a stop() function, when I press the space bar the bullet mc plays from frame 2 which is a motion tween of the bullet quickly moving across the page. I've set the bullet's y and x values relative to the character mc so that the bullet always comes from the gun.
My issue is that if I press the space bar a bullet will fly out of the gun (great!) but if I press the space bar again, the first bullet disappears and the bullet animation starts again. I want to be able to shoot a new bullet every time I press the space bar without effecting the bullets that have already been shot.
[Code]....
View 3 Replies
Mar 25, 2011
I'm currently making my own shoot'em up game where the player can switch between two player types which will fire their own bullet type in this case, squares and circles. I've setup the player switch function via pressing "space" button (switching between the two player types) and the default bullet type is "squares" and I'm not sure to approach the coding with changing the bullet type to "circles".I've written 2 classes for the bullet and player setup:Player Class: Creates instance of bullet on screen and enables the switch player type function
Bullet Class: Enables bullet properies and bullet types Player Class: Code:function onKeyDown(event:KeyboardEvent):void {if (event.keyCode == 32) //// pressing/holding "space bar" to function
[code]....
View 5 Replies
Oct 4, 2009
i have 2 classes, one for ship one for bullet.i was trying to set the bullet.x to ship.x in the bullet class but it keeps telling me undefined. but clearly it is in my ship class.
View 10 Replies
Jun 4, 2009
I'm making a game but I have the code that will randomly place an object in a specified area and will keep making new objects that do the same thing (Sort of like the platforms on the game "Fall Down") but the scenery in my game will scroll up not down.
View 1 Replies
Mar 31, 2006
I'm doing my best to put together a little game my brother can change the graphics on to his own delight. Its a basic side scroller type thing. What I'm doing is programmatically creating the scenery in the background and making it move across the stage, but only when the right mouse button is pressed.
[Code]...
View 1 Replies
Dec 24, 2009
I'm developing a Flash AIR app mostly on Windows Vista, but recently tried to do a little light editing on my MBP running Snow Leopard as I have access to the excellent jEdit text editor there. Unfortunately, the Windows Consolas font I have chosen for on-screen error messages, tool tips, etc seems to have issues with displaying properly in the Mac version of Flash CS4.
Consolas displays well in Flash CS4 editor mode (and other Mac apps like Text Edit), but as soon as I try and test the Flash file, the font basically explodes, drawing huge black triangles all over the screen. The app continues to work properly, but it's almost impossible to use as everything is covered in triangles. I tried clearing the font caches already as well as deleting the ASO files/test movie.
View 1 Replies
Dec 22, 2011
I need to create an exploding image in Flash and want it to look as good as when using "cc particle explosion" in After Effects. Is this possible and can anyone point me in the right direction to creating this - or downloading an existing effect / component that I can drag and drop on an image.
View 1 Replies
Aug 8, 2009
like this but with text. (text is pixely and on mouse over does the above)
View 1 Replies
Apr 29, 2010
Does anyone have an idea of how I could go about creating something like the flying particles in the intro of this Audi site? URL...
View 3 Replies
Apr 22, 2009
I've been working with Flash for over 3 years, but I can't figure this one out. I've got a body of text, half of which are bulleted points designated by <li></li>. It's loaded into a html-ised dynamic textbox.
[Code]....
It displays fine as is. However, if I make the box selectable, and select any part of the bulleted list, the ENTIRE body of text turns into a giant bulleted list, including the non-bulleted portion at the beginning. I've managed to replicate this bug with Flash 8 and CS3, using a variety of flas made from scratch.
View 1 Replies
Nov 26, 2010
I'm creating a small car game where you shoot from the car, so I've made a bullet animation with this code inside the mocieclip:
Actionscript Code:
shellNo = 0;function shellEject(){shell_holder.attachMovie("shellAnim", shellNo, shellNo);shellNo++;}
But the problem is that the car is moving when you controll it so the bullet stays on the same position and I want it to follow the car and start from the same position as the car whereever it goes.
View 1 Replies
Nov 25, 2010
I'm creating a small car game where you shoot from the car, so I've made a bullet animation with this code inside the mocieclip:
shellNo = 0;
function shellEject(){
shell_holder.attachMovie("shellAnim", shellNo, shellNo);
shellNo++;
}
But the problem is that the car is moving when you controll it so the bullet stays on the same position and I want it to follow the car and start from the side of it whereever it goes.
View 1 Replies
Mar 17, 2009
I have some code in for a dynamic text field:
<ul><li>Item one</li>
<li>Item two line one<br>Item two line two</li>
<li>Item three</li></ul>
[code].....
View 3 Replies
Nov 26, 2010
I'm creating a small car game where you shoot from the car, so I've made a bullet animation with this code inside the mocieclip:
[Code]...
But the problem is that the car is moving when you controll it so the bullet stays on the same position and I want it to follow the car and start from the same position as the car whereever it goes.
View 1 Replies
Jan 18, 2010
Basically i just need a simple way to remove the "Enemy" when it comes into contact with "bullet".Ive been looking on the internet but its just really confusing me at the moment. And im not sure how easy its gonna be with the way i have set it up.
View 1 Replies
Sep 21, 2010
I've made a scrollable text field with the UIScrollBar component. Now I need bullet points in that text. How do I create them?
View 1 Replies
Nov 8, 2010
I am playing around with ActionScript 3 and trying to build a very simple prototype for a video game (top-down action/shooter) and realized that handling bullets is a little bit more challenging than I originally imagined.
In order to get a fairly decent "flight" of the bullet between the character and the target, I ended up using a highly modified version of Bresenham's Line Algorithm to determine the flight path of the bullet and then merely draw a tiny flash.geom.Rectangle object at the appropriate place on that "flight path" during the draw-frame stage of my application.
I haven't noticed any real problems, but I just can't imagine this being the best way to handle bullets in a Flash game. I imagine that once there are multiple enemy players on the screen and lots of bullets flying around (especially once I code in automatic weapons) that things could come grinding to a halt.
What am I missing here? I'm not really a game developer and so most of the things I'm doing I've just "made up" on the spot, but I can't figure out how to effectively handle bullets in Flash.
EDIT: As requested, here is "my" Bresenham code. I say "my" in quotes, because I basically ripped this from somewhere on the internet. My changes to the algorithm basically involve the lines at the bottom. The original implementation would find the path from player character to the target, except that every once in a while (and I wasted a little bit of time trying to figure this out but never got anywhere) it will generate the path from the target to the player. To "fix" this, I ended up just checking the first X/Y values from the path array and reversing the array if those values didn't match the X/Y values of my player character.
[Code]...
View 4 Replies
Jul 27, 2004
im just testing some stuff, and everytime the space key is pressed i want one bullet to come out, however righty now you can just hold down space and it keeps firing...heres the code i used [code]
View 11 Replies
Jul 29, 2005
I am trying to create a bullet hole effect when you click the mouse down.I want a bullet hole to appear where you click the mouse and to stay there, and then when you have > 10 bullet holes on the stage i want to earliest ones to start to fade out.
Here is my code so far:
[AS]
onClipEvent (mouseDown) {
i++;
this.duplicateMovieClip("BulletHole"+i, i+1);
[code]...
However this just duplicates the movie clip and then when you click again it disapears straight away.
View 12 Replies
Jan 11, 2011
i just made a 2d shooting game lately. I got a question, how do you make a collision between the bullet and the monters? Here's my code:
Code:
enemy_mc.onEnterFrame = function ()
{
if (bullet_mc.hitTest(this._x, this._y, true)) [code]...
But it doesn't seem to destroy/remove the monster when it hits or even say 'true' on the text on the upper left corner.
View 2 Replies
Jan 28, 2011
i have a slight problem, im just testing some stuff, and everytime the space key is pressed i want one bullet to come out, however righty now you can just hold down space and it keeps firing...heres the code i used :
on (keyPress "<Space>") {
i = i+1;
duplicateMovieClip(_root.bullet, "bullet"+i, i);
}
View 1 Replies
Oct 12, 2008
How would i make an enemy bullet go towards the main character?
View 7 Replies
Feb 18, 2009
So the problem is basicly this: It all works just fine, but when the bullet hits the target it gets destroyed (this is ok) but also any bullet that was shoot before it (meaning also: with a lower y) gets destroyed aswell wich is anoying. Here's the code (left the comments so you can find your way around easier)
Code:
stop();//add a stop function too!
enemyspeed =1
life=3
var gameOver:Boolean = false;
[Code]..
View 2 Replies
Jun 1, 2009
I have added some bullet points in dynamic text but the gap between each one is massive, how can I get it so they are directly under each other.I am using the tag <li>
View 1 Replies
Jul 21, 2010
I am trying to program a game and I want the enemy character to fire a bullet every second, but instead he is firing an infinite amount of bullets right after the other. Here's the code with the timer:
if (k == 0){
var shootRight1 = new Timer(1000,1);
shootRight1.addEventListener(TimerEvent.TIMER_COMPLETE, enemy1shoot);
shootRight1.start();
[code]....
View 5 Replies
Mar 16, 2010
I found a tutorial on the internet and have begun toying with it. I figured out what all the segments did and how they worked and effected the game (mostly through trial and error...) once i figured out what EXACTLY i had i started making changes.
-What i want - once the bullet hits a monster OR goes out side of the range of the gun it disappears and another shot can be fired (which is done automatically via my script no user input needed)
-What i have - when the bullet goes off the page (x>550, x<0, Y>400, Y<0) it disappears and another shot can be fired... obviously this is problematic to game play...
[Code]..
View 1 Replies
Mar 8, 2010
I have embedded my font using the embed meta tag, along which the entire range of Unicode characters... here is my CustomTextField class[code]...
View 2 Replies
Mar 29, 2010
how I can draw Bullet Points using Flex? instead of using image for 1, 2 and 3?
View 2 Replies
Jan 4, 2011
Take a look at this scenario, I have two characters, one shoots two bullets on the direction of the other character, the bullets are fired instantly and travel at infinity speed, how to detect a collision? Here's an image to illustrate the problem: The red bullet would clearly miss, but the green bullet would hit, how to perform this kind of collision test?
View 1 Replies