ActionScript 2.0 :: Add A Small Explosion Like Thing When The Ball Hits The Yellow Circle?

May 4, 2010

just wondering how i can add a small explosion like thing when the ball hits the yellow circle, and not just a picture appearing on the hit (game attached, and using adobe Cs5)

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Make Something Stop When It Hits Another Thing?

Jan 7, 2004

I am wanting to make a game, and I need a gravity code that works great. I want gravity, a jumpibg code, and then a code to make something stop when it hits another thing.

View 2 Replies

Server Side :: Make A Small Thing On A Website That Will Allow The User To Update The News Themselves?

Dec 26, 2003

Ok I'm trying to make a small thing on a website that will allow the user to update the news themselves.... after reading up on it i found that to export a textfile in this way I would have to have a serverside script to execute it for me (PHP in my case)... I did it, but it isnt working..

View 14 Replies

ActionScript 3.0 :: When A Circle Hits A Square

Oct 15, 2009

i would like to know when a circle hits a square.Following code returns true when the rectangle of the MovieClip (blue) hits the square and not the circle itself:

circle.hitTestObject(square);

In as2 you had an extra parameter to indicate that.

View 3 Replies

ActionScript 3 :: Ball Physics (Fast Move And Small Objects On Path)

Mar 31, 2012

After read a lot about ball physics, watch some examples and few days of trying making pinball with bitmaps, I use simple (easy to work with) and fast performance Physics AS3 engine for bitmaps [URL] but still cant fix problem: if ball is moving too fast and object on path is too small, there will be no collision detection (code works perfect only with bigger objects or if ball is moving slower). I am not good at physics and maths. Here is function code which make physics for ball on every frame rate (but maybe its better to change it to setTimeout):

function showFrame(e:Event) // onEnterFrame{
var collisions:Array = collisionlist.checkCollisions();
if(collisions.length) // if collision{
var collision:Object = collisions[0]; // get collision information
var angle:Number = collision.angle; // get collision angle
[Code] .....

View 2 Replies

ActionScript 2.0 :: Ball Hits The Brick In A Angel It Gets Stuck On The Insid Of The The Brick

Mar 5, 2004

i made a bouncing ball game. but i put a hitTest on it so that it would bounce off a brick. but what happends is that when the ball hits the brick in a angel it gets stuck on the insid of the the brick.

View 1 Replies

Randomly Move A Ball Inside A Bigger Circle?

May 26, 2009

I am trying to figure out a way to randomly move a ball inside a bigger circle. The motion has to be smooth and completely random. 

View 3 Replies

ActionScript 2.0 :: Delete Small Circle And Create Another One At The Same Location?

Apr 29, 2011

I'm using AS 2.0 I have big MC(circle - vector). It's not perfect circle because of Flash.On this circle I have some mc's (small circles - bitmaps) --> I'm using attachMovie on Big circle. I'm rotating with big circle by 45 degrees.

Sometimes I have to delete small circle and create another one at the same location. But after rebuild the position of new small circle is a little bit changed[mm].

It's visible and I'm very disappointed. It happens even the rotation is 0.

View 1 Replies

Professional :: Delete Small Circle And Create Another One At Same Location

Apr 29, 2011

I'm using AS 2.0.I have big MC(circle - vector). It's not perfect circle because of Flash.On this circle I have some mc's (small circles - bitmaps) --> I'm using attachMovie on Big circle. I'm rotating with big circle by 45 degrees.Sometimes I have to delete small circle and create another one at the same location. But after rebuild the position of new small circle is a little bit changed[mm].It's visible and I'm very disappointed. It happens even the rotation is 0.

View 6 Replies

IDE :: Random Movement - Randomly Move A Ball Inside A Bigger Circle

May 26, 2009

I am trying to figure out a way to randomly move a ball inside a bigger circle. The motion has to be smooth and completely random.

View 1 Replies

ActionScript 2.0 :: Make A Ball Bounce Off Something Like A Ball Bouncing Off A Bumper In A Pinball Game?

Jun 20, 2006

i wanna ask how do i make a ball bounce off something like a ball bouncing off a bumper in a pinball game? i've tried a lot of times but everytime the ball get stucked to the box and it doesn't move anymore...will be grateful if anyone noes the actionscript of it..

View 3 Replies

ActionScript 3.0 :: Ball Collision Inside Another Ball Using Gravity?

Jun 5, 2009

ball collision inside another ball using gravity.I have one large circle in the middle of the stage (its radius is 150 pixels). I have another circle inside of that one (20 pixels radius), this is the smaller ball that I would like to have bounce around inside of the larger one with gravity. When the small ball hits the edge of the larger circle, I would like it bounce inwards to the center of the larger circle. It keeps doing this until it eventually stops in the center of the larger circle at the bottom.

View 1 Replies

ActionScript 3.0 :: Add An Explosion Were HitTest Occured?

Jun 24, 2009

i am using AS3 and i have this hitTest occuring:

Code:
function hittest(e:Event):void {
for (var i=0; i<bulletArray.length; i++) {

[code].....

View 1 Replies

ActionScript 3.0 :: Create A Simulated Explosion In CS4?

Jan 18, 2010

I am a newby trying to create an animation in CS4 AS3 which simulates a gas explosion in a test chamber. I have a button that when clicked will produce a simulated spark inside the chamber which then will snowball into a gas explosion if the variables are correct.

Does anyone know how to create a simulated explosion in CS4 AS3 ?

View 1 Replies

ActionScript 1/2 :: Explosion Effect  For Single Image In CS5?

Jun 14, 2011

I was hoping for assistance on how to recreate an explosion effect like Flash 8 adn MX used to have. It seems to be missing now. It is not in the presets. I tried to break apart but something is missing. How can accomplish this? I am trying to explode and IMAGE not TEXT.Particle tutorials seem to explode into hundreds of parts. Im looking for 12 to 16 exploded pieces. I'm not the great at AS2 or 3 but Again this is for an image not text so the simple Break apart doesnt seem to be working.

View 2 Replies

ActionScript 3.0 :: Shaking Stage With All Objects After Big Explosion

May 14, 2011

Is it real to make my stage shaking by actionscript? For example, shake the stage with all object after big explosion....But without touching objects (without their movement). Just cool effect. So?

View 4 Replies

ActionScript 2.0 :: Particle Explosion, Removing Movieclips?

Jul 28, 2005

Ive attached the associated file, Its simply a partical generator that initially creates an explosion of particles which disipate after they stray a certain distance, but how can i remove the original particle movieclip from which Its formed?

View 14 Replies

ActionScript 2.0 :: Creating New Sound Objects For Each Explosion?

Nov 7, 2004

i'm making a game with tanks at the moment, and there will be explosions happening from side to side on the screen. i was thinking that it would be good to pan the sounds, so explosions on the right of the stage would play on the right speaker etc.

i tried to do this by creating new sound objects for each explosion and then setting the pan for each, individually, but it seems that when i set the pan for one sound object, it sets that for all of them. is there a way around is?

View 7 Replies

ActionScript 2.0 :: Calculate The Direction And Speed A Circle Has After Colliding With A Static (non-moving) Circle?

Mar 8, 2005

I'm developing a game atm, and I need some help on the mathematics/coding of colliding circles (and their change in x/y speed). What i need to know is how to calculate the direction and speed a circle has after colliding with a static (non-moving) circle. I know how to detect a collision between the two, but I'm not sure about the maths I need to give the circle the right speed and direction after the collision

If i do know how far away the two circle-points (in the middle of each) are to each other (in both x and y coords) would it be easy for me to find the new speed and direction of the large circle in the example above? I know that I somehow should use the angles to pretend the circle hits a flat "wall" (as it only hits one point), and then calculate the new speed/direction. My only problem is that I'm not sure how to decide the angle of this flat "wall" and how x and y speeds should change when colliding with a wall that is angled. Does anyone here have any insight, links or tips on how I can du this?

View 6 Replies

ActionScript 2.0 :: Make One Circle Follow The Mouse Cursor Inside Another Circle

Sep 30, 2005

i want to make one circle follow the mouse cursor, inside another circle. Similar to an eye looking at the cursor. Ive attached an example.

View 4 Replies

ActionScript 2.0 :: If Statement / Variable - Say If Circle Shows Up Change It To Circle (french)

Nov 5, 2008

I have text in a dynamic field showing up as circle. I want to say if circle shows up change it to cercle (french).

[Code]...

View 1 Replies

ActionScript 2.0 :: Calculate Direction And Speed Circle Has After Colliding With A Static Circle?

Mar 8, 2005

What i need to know is how to calculate the direction and speed a circle has after colliding with a static (non-moving) circle. I know how to detect a collision between the two, but I'm not sure about the maths I need to give the circle the right speed and direction after the collision.If i do know how far away the two circle-points (in the middle of each) are to each other (in both x and y coords) would it be easy for me to find the new speed and direction of the large circle in the example above? I know that I somehow should use the angles to pretend the circle hits a flat "wall" (as it only hits one point), and then calculate the new speed/direction. My only problem is that I'm not sure how to decide the angle of this flat "wall" and how x and y speeds should change when colliding with a wall that is angled.

View 6 Replies

ActionScript 3.0 :: Explosion Effect  For Single Image In Flash CS5

Jun 14, 2011

How to recreate an explosion effect like Flash 8 adn MX used to have. It is not in the presets. I tried to break apart but something is missing. How can I accomplish this? I am trying to explode and IMAGE not TEXT. Particle tutorials seem to explode into hundreds of parts. I am looking for 12 to 16 exploded pieces. Again this is for an image not text so the simple Break apart doesn't seem to be working. I am Using Flash CS5.

View 2 Replies

Actionscript 3.0 :: Make An Explosion And Move Other Movieclips On Stage?

Jan 27, 2009

I want to make an explosion and move other movieclips on stage depending on how far they are from the explosion point. If one mc is only 10px away from explosion it should go another 90px and if it is 75px away it should go another 25px. I can't get it to work (I don't remeber anything about vectors in math class..)

View 1 Replies

ActionScript 3.0 :: Graphics - Paint (change Color) Inside Of Circle When A User Draw A Circle

Aug 24, 2009

I`m working on a app that you can draw lines.....like circles, rectangles... my problem is when a user draw a circle for example....i wanna be able to paint (change color) inside of this circle. I`ve tried working on Shapes with cacheAsBitmap = true and Bitmaps with BitmapData but it doesn`t seens to work.

View 4 Replies

Actionscript 3 :: Change Shape Of Circle By Dragging Point On Circle

Mar 16, 2012

I want to create circle, and put 8 points on it. So, user can drag each point in order to change it's shape.

Is there any way to do this in flash?

I have some following code:

Ref. - How to draw a continuous curved line from 3 given points at a time

package{import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.geom.Point;

[Code].....

So, can anyone convert these three point curve line to 8 points circle?

View 1 Replies

ActionScript 2.0 :: Drawing A Circle - Circle Diameter Has To Be Controlled By A Button

Oct 6, 2009

I have to draw a circle using action script. The Circle Diameter has to be controlled by a button.

View 0 Replies

ActionScript 3.0 :: Circle Circle Frame Independant Collision Reaction?

Apr 10, 2010

Trying to do circle circle collisions via math which I'm really having trouble with. One circle (player) just moves from keyboard. The ball reacts to the player. All the code shown is in my players class and I passed in a reference to the ball.

On my enterframe I have:

Code:
var xmov1 = xSpeed;
var ymov1 = ySpeed;
var xmov2 = ballRef.xSpeed;
var ymov2 = ballRef.ySpeed;

[code]....

Perhaps I'll go with a box2d equivalent instead of trying out my own physics shenanigans.

View 2 Replies

Professional :: Text Animation Sideways Explosion And Fade Off Page?

Mar 19, 2010

I'm using Flash CS3, actionscript 2 to build a site in which I would like to have a line of text animation to slide off the screen, but I'm looking for something similar to almost a 'sideways explosion'.... it will be synched to the sound of a golf club swing, and I'm look for some way to get that instant explosion, with the letters plowing through each other and away as they fade off the page....

View 3 Replies

ActionScript 2.0 :: Start Drawing First Circle And When First Circle Is On Half Way?

Sep 19, 2004

Here I what i need is : Start drawing first circle and when first circle is on half way, Start second circle.same way second and third circles. and after completing 3 circles, just gotoAndPlay 2nd Frame .

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved