ActionScript 2.0 :: Depths With A Particle System?

Aug 20, 2009

I am new to actionscript but I am fairly confident in messing around with it. I have been trying to make a particle engine for two days now and I'm at my wits end.

What's funny is, the particle engine works fine. i have piggy backed off of somebody elses particle engine and modified things to how i need them (And stripped it of a few unnessicary things..) what my problem consists of, is I am trying to make the particles go behind another movie clip. this movie clip is a frame (to make it blend in with the webpage it is displayed on) and it must always stay on top depth no matter what to give that affect.

[Code]...

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Particle System And Masking - Particle System Movieclips To Display An Image?

Dec 29, 2010

Is it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.

View 0 Replies

ActionScript 1/2 :: Particle System Collision Area?

Apr 17, 2009

I've got a bunch of modules called "c4" labled red1,red2,red3, etc. And a laser made from particles, with angle controlledby bckspace and enter keys:
 
onEnterFrame = function(){ 
for (m=1;m<4;m++){c4 = this["red"+m];  
if(robot_mc.laser_mc.lasereye_mc.hitTest(c4.cap)){c4.gotoAndPlay("fram e2"); }

[code]....
 
The problem I run into is having the collision work with the beam, as opposed to the bounding box that begins with thelasereye_mc. Is there a way to get the c4 to react with the beam, instead of the bounding box around the beam? Or a way to get the photons to interact individually? Also, is there a way to load a particle system through an onEnterFrame without it overloading/oversaturting ?  

View 6 Replies

ActionScript 3.0 :: Targeting A Particle System In A Container?

May 5, 2009

I've written a game with a particle system, as the particles go off the stage, they are removed.  At the end of the game I want to remove all the particles which are still on the stage.  How can I do this?
 
My first thought is to put all the particles in a container and then remove the container at the end of the game.  However, if I put the particles in a container, I can't reference them anymore with event.target

View 2 Replies

ActionScript 2.0 :: Dupin A Particle System Mc - Yoinks?

Oct 4, 2004

i've got this really simple particle system... what i can't figure out is how to duplicate it and still have it work. if you take a look at my .fla, you'll see that I have attempted to dupe the mc and particle system by duping the mc and having the same AS on it. I also duped the original code on the 2nd frame which multiplies the mc's to create moreparticles...maybe somebody can tell me what's going wrong here. i'm trying to achieve a sprinkler head effect so i need to dupe this effect to fill in what a real fire sprinkler would do.

View 8 Replies

ActionScript 3.0 :: Create A Particle System For A Game?

Apr 12, 2010

i am trying to create a particle system for a game i am creating in class, though it seems that the particles are not being added to the stage. my instructor and i have checked all the obvious things and now were stumped?

particle class:

Code:
package {
import flash.display.MovieClip;
public class Particle extends MovieClip {
var xspeed:Number;

[code]....

the particle movie clip is simply a 5x5 rectangle, with the class name redParticle and the base class is Particle. [URL]

View 1 Replies

ActionScript 3.0 :: Particle System As Image Mask?

Dec 30, 2010

I'm a self proclaimed n00b when it comes to as3, but I'm learning rapidly.I followed this guide and created a great particle system: url...What I'd LIKE to do, if possible, is make those particles that are generated be the only part of an image that shows(mask). The tutorial contains a fla with a movieclip of a circle, two classes...particle and ball which call the movieclip and generate it on the stage.

View 1 Replies

ActionScript 3.0 :: Modifying Particle System Code?

Mar 8, 2011

I got the AS code for a really cool particle fountain and modded it to use it for the animation of a popcorn machine. It turned out really great. The only thing I didn't care for was that the particles were balls. It worked fine on a small graphic but now i want to make a larger scale version and wanted to make the sprites actual pieces of popcorn.Here's the code I'm using so far:

Define the gravity.
This determines how fast the balls are pulled down.
*/
var gravity:Number = 0.2;[code].....

View 2 Replies

ActionScript 2.0 :: Dupin A Particle System Mc - Yoinks

Oct 4, 2004

i've got this really simple particle system... what i can't figure out is how to duplicate it and still have it work. if you take a look at my .fla, you'll see that I have attempted to dupe the mc and particle system by duping the mc and having the same AS on it. I also duped the original code on the 2nd frame which multiplies the mc's to create more particles... maybe somebody can tell me what's going wrong here. i'm trying to achieve a sprinkler head effect so i need to dupe this effect to fill in what a real fire sprinkler would do...

[Code]...

View 8 Replies

ActionScript 3.0 :: Particle System Snow Globe Boundaries

Jan 26, 2011

I've made a particle system snow globe and right now I have snow blowing across the stage, but I want to have the snow blow around only within the snow globe which is placed in the middle of the stage. I made a movie clip (area_mc) that I want to use as the boundary for where the particles can float.

View 0 Replies

Actionscript 3.0 :: Tweaking Particle System - Circles Come Out In Different Colors

Feb 16, 2009

I have these particle system files, it actually does what I want. It makes circles come from a center point and have them expand out of the screen. However I have a couple of questions regarding those files, I wanted to add and change a couple of things:

- I would like that the circles come out in different colors, red, green and blue in randomized order.
- I would like to add a "fade out" option. Instead of having them grow out of the screen, have the option to have a defined circle size and when the circle reaches that size it fades out. Or something easier that works just the same, basically have it fade out.
- Have the circles blurred a bit. Possibly have the chance to control that too.

Then I would like to add some interactivity to the system. Basically have the circles move away from the mouse when the mouse rolls over or near that/those circle(s). Is that easy?

View 1 Replies

Actionscript 3.0 :: Create A HitTestObject Function - When The Character Touches A Particle, The Particle Disappears?

Jan 12, 2010

I have a particle generator class and I want to create a hitTestObject function on another object to check for any collisions with the particles produced.I bascially have a character already on the stage called character_mc and I want to be able to collect the particles, that means when the character touches a particle, the particle disappears.

View 1 Replies

ActionScript 3.0 :: System.useCodePage - Getting Error 1120: Access Of Undefined Property 'System?

Aug 7, 2009

I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.

View 3 Replies

ActionScript 2.0 :: Particle Systems

Dec 23, 2004

If anyone would please post everything they can about particles and particle systems, including tutorials, source files, links, movies, comments, help, and code, I am trying to learn about particles and particle systems, but I can't fin anything that meets my needs. Please post whatever you can!

View 4 Replies

Pulse Particle Always Going To The Top Level/layer?

May 10, 2009

I'm using the Pulse Particle component to place a random starfield into my client's animation. Problem is as you'll see in this simplified example, I have the particle layer next to the bottom but when you render out the movie, the particles go right to the top layer, no matter what. I tried both this timeline effort and then I tried placing it with AS3 using the addChild method. Neither worked at all. How can I tell this component to only populate to the proper layer/level so the objects above it are seen without any particles?

View 2 Replies

Aura / Particle Effects For Flash

Nov 23, 2009

i always loves to create aura/particle effects in flash while creating some website, I always use after effect to create them, but it's a little heavy side.I was wondering is there any way to make it lighter in weight so it could faster the loading time?URL...

View 1 Replies

ActionScript 3.0 :: Particle Generation On Mouse Click?

Jan 21, 2010

Here is the code that I have just now:

Code:
package
{
import flash.display.*;
public class Particle

[code]....

This creates a constant stream of particles flowing from one point on the screen. I don't want the particles to constantly flow out from one point - I want to create a button that causes a set number of particles to explode out from it when it is clicked.

View 10 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 :: Particle Effect Using Movieclips From Library?

Jul 27, 2006

so I am requesting a little help to connect a few pieces of code I have; the end result being a particle effect that propels 9 different movieclips (pulled from the library) off 'into space'.

Here is the code to call a single movieclp, which I was able to create myself :

Code:
var i:Number=0;
function createMusic() {
origin.attachMovie('music', "music"+i, i);

[Code]...

View 1 Replies

ActionScript 3.0 :: Blood Particle Engine - FPS Lags

Jan 26, 2009

I was working on a little particle engine for blood in a project I am working on and I can see it being versatile enough to be good but when I import it into a test environment it causes a little fps lag.

Code:
package {
import flash.display.Sprite;
import flash.events.Event;
public class mc_Blood extends Sprite{
private var xTarget:Number, yTarget:Number;
[Code] .....

View 14 Replies

ActionScript 3.0 :: All Objects In Particle Array Receive Different Velocities

Mar 29, 2009

Code:
package{
import flash.events.*
import flash.display.Sprite;
public class ParticleAttractors extends Sprite{
public var i:int;
public var j:int;
[Code] .....

They all move in unison, but by my terrible reasoning, all objects in the particle array should receive different velocities. Is there some much more efficient way to achieve this effect? If not, tell me what is wrong in my for loop. Update is an on enter frame function, by the way.

View 1 Replies

ActionScript 1/2 :: Gold Particle Falling Effect In Flash?

Apr 8, 2009

create falling gold particle effect in flash.

View 8 Replies

ActionScript 3.0 :: Photon Particle Moving Across The Screen The Disappear

May 12, 2010

I have a photon particle moving across the screen the disappear when it gets to a certain point, but when the photon goes to call its Destroy () function it throws this error: ypeError: Error #1006: value is not a function.Here is the class:

ActionScript Code:
package
{

[code].......

View 3 Replies

Actionscript 3.0 :: Find A Water Physics Particle Engine?

Jun 3, 2009

where i can find a water physics particle engine.

View 2 Replies

ActionScript 2.0 :: Make Particle Properties Refresh Every Time It Loops?

Mar 24, 2009

How I can make the particle properties refresh every time it loops. In other words, the rotations will be random every time I test the movie, but every time it loops, they remain in their same random positions it chose at the beginning. [code]...

View 3 Replies

ActionScript 3.0 :: Remove Particle Instances / Working Source Included

Jul 16, 2009

I am having trouble removing these particle MC'sAll the code explanation and source files are on my blog: URL...

View 1 Replies

ActionScript 3.0 :: Removing / Killing Particle Effect Upon Button Event

Jul 23, 2009

I'm trying to kill a particle effect I've made for this animation upon a button event. Here's my script as it appears at the keyframe before the animation moves on:[code]When either of the buttons are pressed and the animation moves on, I want to remove the smoke children I've created at the top.

View 2 Replies

ActionScript 3.0 :: Know How To Swap Depths

Aug 28, 2010

ts an interactive gallery where when a photo is selected it plays the movie clip and the photo grows to fill the screne. The problem is, since the animations take part within the movie clips and all the movie clips exist on the same layer when they are selected and grow to fill the screne they are being hidden behind all the movieclips infront of it in that layer  I know that there is an action to bring movieclips to the highestdepth or to front on click/release but i do not have a clue where to start

View 5 Replies

ActionScript 2.0 :: Remove All Mc At Different Depths?

Feb 24, 2011

I am trying to remove all instances of the many movie clips located inside a main holder_mc on the stage. I want to remove these on the click of a buttonSomething like this

onRelease() {
<<<<<!---- REMOVE ALL MC'S FROM HOLDER_MC ----!>
}

[code].....

View 2 Replies

ActionScript 2.0 :: Depths Particular To Movieclips?

Feb 3, 2005

Are depths particular to the timeline of the movieclip you refer to it? In other words, let's say you have actionscript to duplicate a movieclip 100 times, each time putting the new one on the next depth. But the code and the movieclip to be duplicated are themselves inside a movie clip. Are those depths inside that movieclip?

So for instance, let's say the parent movieclip lies on the maintime. And on a layer above that is a button. Are those duplicated movieclips going to be visibly above or below the button? A tangible example: I would like to have a smoke/steam effect that uses duplicateMC and depths. But I need the effect to be underneath other movieclips at certain times. Can I just contain the effect inside a movieclip that sits on a layer below other movieclips on the maintimeline? Or do I need to stop the effect and do a swapdepth with whatever the last depth was?

View 6 Replies







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