ActionScript 3.0 :: Make A Bunch Of Particles Jump Around?

May 4, 2009

I'm basically trying to make a bunch of particles jump around. I've used the draw tools to draw a small red puff. When you click the puff shoots up from the cursor a few pixels before falling down.
 
how to call the information from this .as file in another file. This way I will take out the click functionality from the file I have done and have the puffs shoot out automatically at the mouseX and mouseY coordinates.
 
I eventually want to have these puffs shoot out from a character as it runs across the screen in a game I have planned. It will make it much easier to have these puffs called from a seperate file I believe.
 
Here is the code I have so far:

[Code]......

View 7 Replies


Similar Posts:


ActionScript 3.0 :: How To Make Streaking Particles

Jul 31, 2009

Does anyone know of a tutorial on how to make streaking particles. I understand the basics of particles, but I want to make a firework effect, one that leaves light trails or streaks behind for a moment before they fade away.

View 0 Replies

ActionScript 2.0 :: Create Falling Snow For Flying Pollen But I Can't Make The Particles Move Horizontally?

May 29, 2010

I'm using the tutorial to create falling snow for flying pollen but I can't make the particles move horizontally. They go straight on from the bottom to the top of the stage.This is the code:

onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 900;[code]......

View 2 Replies

ActionScript 3.0 :: Make The Character In Flash Game Make A Jump When The Player Presses A Key?

Dec 19, 2009

i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.

View 1 Replies

ActionScript 2.0 :: Can't Make Character Jump?

Nov 14, 2006

I am creating a game in flash using spirte sheets of megaman and I have a problem setting up script to make him jump. I am able to have megaman run side to side and also shoot but I can not get him to jump. Here is a sample of my code:

var hspeed = 0;
var vspeed = 0;
var i = 0;

[code].....

View 3 Replies

ActionScript 3.0 :: Make A Bar Jump Smoothly From One Scale To Another?

Jun 14, 2009

i want to make a bar jump smoothly from one scale to another, basically like a visual sound output without the sound. I've been stuck on this one for a few hours now and i know it must be just a logic problem

[Code].....

Whats happening here is that the Bar is scaling to the first random point perfectly but as soon as its target becomes a number around 0.50ish it will stick around that forever because the difference will be too small from there to the next point (i think). So is there any way that it can still make large jumps while using Zeno's Paradox type easing?

View 1 Replies

Professional :: Make Character To Jump When Hit The Space Bar?

Aug 10, 2011

how do i make my animation not fall of the stage when i make it move with they arrow keys?also how do i make my character jump when i hit the space bar using actionscript?

View 1 Replies

ActionScript 2.0 :: Make Button Keyframe Jump?

Sep 2, 2005

I was wondering if there is a nice little bit of code that will effectivly skip a certain amount of frames in addition to the frame its already on..e.

Code:
on (release) {
gotoAndPlay(currentframe+8);

[code].....

View 3 Replies

ActionScript 3.0 :: How To Make Character Jump Onto Platform

Sep 2, 2009

I am trying to make a character jump on to a platform this is my code. The block1, block2 etc are the blocks that I want my character to jump on

PHP Code:
var onBlock:Boolean;
var blockHolder:Array = new ArrayblockHolder.push(block1)
blockHolder.push(block2)
blockHolder.push(block3)
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkBlock)
[Code] ....

The onBlock boolean is used later but my problem is that the code doesn't work.

View 1 Replies

Actionscript 2.0 :: Jump Forward And Jump Back Buttons?

Jun 15, 2010

I am brand new to scripting in Flash, and was hoping I could get some help on a question. I have an animation that is 300 frames long. The first 100 frames are an animated 'ad' (for lack of a better term), the second 100 frames are a different ad, and the third 100 frames are the last ad. This can be viewed straight from beginning to end (and is intended to loop if no action is taken), but I would also like to add some functionality to the animation, so that people can jump forward to the next ad, or back to the previous ad (hitting back from the first ad would take them to the third ad, and vice versa.)

[Code]...

This does not turn up any errors when I test the movie, but the functionality does not work. Am I anywhere near a working script, or am I attempting this in a completely wrong way?

View 3 Replies

ActionScript 3.0 :: Array Of Variables - Make A Bunch Of Variables From A For Loop

Feb 21, 2009

How can I make a bunch of variables from a for loop. for example for (var i=0; i<total; i++) {var bunch(i);}. that i make a bunch of variables named bunch1, bunch2, bunch3. I keep getting errors. I program and use so many different languages that I dont know if that can be done with AS3. my only other alternative i can think of is to create some sort of event dispatcher object array. but I dont know how to get them all to send events to one listener with there index number.

View 5 Replies

ActionScript 3.0 :: Make Play Button Jump To A Certain Frame?

Sep 20, 2010

I have a button that when clicked,i want it to play an animation from frame let say 3.

View 2 Replies

ActionScript 2.0 :: Make The Main Timeline Jump To Frame 1?

Sep 10, 2004

How do I make the main timeline jump to frame 1 when the mouse moves out of the entire embedded swf?

View 1 Replies

ActionScript 2.0 :: [Flash 8 Pro] Make Scrollpane In External MC Jump?

Jan 28, 2006

I have two movies, home.swf and scrollpane.swf On home.swf i have an empty MC that holds scrollpane.swf.On scrollpane.swf I have a UIScrollPane component called scrollPane4 that holds a MC called "symbol 1" on this MC I have buttons that make the scrollpane scroll down ...

on (release) {
_root.scrollPane4.vPosition = 225;
}

This all works fine untill I load scrollpane.swf into home.swf, now the scroll buttons don't work.

View 2 Replies

ActionScript 2.0 :: Make Cursor To Automatically Jump To 2nd Field

Mar 9, 2011

i have 3 fields where it's possible to type. What I need to know is, when I am on the 1st field, how do I make the cursor to automatically jump to the 2nd field after I write on the 1st, and so on.

View 1 Replies

ActionScript 2.0 :: Make A Movie Jump To A Random Fram

Nov 13, 2002

I need a AS to make a movie jump to a random Fram

View 3 Replies

ActionScript 2.0 :: Make A Text Link Jump To A Frame In Flash?

Mar 24, 2011

I am trying to make a text link within a scroll box jump to another frame within the same Flash file. Is this possible without having to make a button or movie clip? For some reason if I insert an object like a movie clip or button in the scroll box, it appears in a different area when I publish the file so I can't use that option for links.

I need to be able to highlight the text and then program it to jump to another frame label.

View 1 Replies

ActionScript 2.0 :: Make A Stationary Movie Clip Do A Jump Move To The Top

May 28, 2004

im been trying to make a stationary movie clip do a jump move to the top, slowing down, and then comming back down (like a ball being thrown vertically up) within a given number of frames, ie 10 frames.

Also i would want to add a horizontal vector quantity whereby if a key is pressed (ie left) then it would move horizontally left while still in jump mode.

Does an actionscript like this exist?

View 2 Replies

ActionScript 2.0 :: Make The Character Jump When He Is On The Platform It Doesnt Work?

Nov 15, 2006

when i try to make the character jump when he is on the platform it doesnt work.

onClipEvent(load) {
speed=7;
jumping=false;[code...

View 3 Replies

ActionScript 2.0 :: Make A Preloader Jump To A Frame Depending On The Quantity?

Jan 18, 2004

code to make a preloader jump to a frame depending on the quantity on the movie that has been preloaded? in ex i have a mc of a preloader if 5 percent of the movie its loaded the preloader mc will go to frame 2, if 10% the mc should go to frame 3, etc..

View 8 Replies

ActionScript 2.0 :: Make A MC Jump Randomly Either Forward Or Back ONE Frame In The Timeline?

Jan 28, 2012

When landing on a certain frame, I'm trying to make a MC jump randomly either forward or back ONE frame in the timeline. Can't get random(whatever); to cooperate.

View 1 Replies

ActionScript 2.0 :: [fmx] If Statement - Button To Be Able To Make The Movie Clip Jump To Different Frames

Mar 22, 2004

I just have a button and a movie clip (MenuUp) and i want the button to be able to make the movie clip jump to different frames...

[Code]...

View 3 Replies

ActionScript 2.0 :: Make The Cursor Automatically Jump To The Second Input Box After The First Input Box Is Filled With A Character?

Aug 24, 2005

If i have two or more input boxes to create a crossword puzzle, how can i make the cursor automatically jump to the second input box after the first input box is filled with a character?

View 3 Replies

ActionScript 2.0 :: Make The Movie Jump From Scene 1 To Another Scene By Clicking On A Button?

Apr 17, 2004

I have a movie with 4 or 5 scenes. How can i make the movie jump from scene 1 to another scene by clicking on a button?

View 5 Replies

ActionScript 2.0 :: Particles Cause Lag?

Apr 22, 2011

I've made it so when you die in my game, you explode into 20 particles which usually lags the game, especially if it's being played in a browser. I'm pretty sure that it's just because of the graphics,why it's causing so much lag? I've included the AS2 just encase.

Code:
//variables
fall = -8;

onEnterFrame = function () {[code]...

View 2 Replies

Pushing Particles Away From The Mouse?

Feb 9, 2010

I've been working on a little particle generator that produces intractable particles. When you click your mouse, they will move in a straight line away from where you clicked. Seems simple enough, but I can't quite get the formula right.

I want to pass two points and a magnitude scalar value into a function and have it move the particle along the line drawn through the two points, and only as far as the magnitude specifics.

For example:Let's say the particle is at the point P(10,10) and the mouse clicks at the point Q(15,15). I pass both those points and the magnitude 10, into my function.

The function then calculates the angle the particle should travel (45 degrees or PI/4 radians) and sends the particle to the point O(20,20), again, as specified by a magnitude of 10.

Edit: By the way, I'm using ActionScript 3.0, but if possible I would prefer a universal explanation in case I decide to program this in another language, or I am without a programming language when I need to figure it out.

View 3 Replies

ActionScript 3.0 :: Flash Add Particles Per Second?

Nov 14, 2010

How can I rig up an if statement that will add particles to the stage based on the ENTER_FRAME update interval?

Code:
stage.frameRate = 60;
var currentParticles:uint = 0;
var maxParticles:uint = 1000;
var particlesPerSecond:uint = 100;

[Code]...

I run into the problem, where if I choose a bigger value for particlesPerSecond than the stage framerate, I don't add the correct number of particles.

View 7 Replies

Actionscript 3 :: Virtual Array Of Particles

Mar 25, 2011

I made a particle class following a tutorial a while ago. Basically it uses some sort of a virtual list, replacing the array method, which makes it really fast solution. So everything is working perfectly fine except the fact that i really can't understand what actually is going on. It is pretty confusing so im trying to find the logic in this stuff, unfortunately with no success.[code]

View 1 Replies

ActionScript 2.0 :: Particles Move On MouseOver

Dec 31, 2008

I know I am a new member but hopefully my question won't be overlooked because of this fact. Anyway, here goes. I have a new project, a flash intro, and my client wants to be able to wipe away sand particles to reveal an enter website button. I tried an simple method of wiping away a image layer like an eraser but they want it to look like actual sand particles are moving around.

View 9 Replies

ActionScript 3.0 :: Multiple Particles On Stage?

Jul 1, 2009

how to create the type of particle I want and add it to the stage but how can I add multiple instances of this particle, with different values assigned? Here is what I have so far:

ActionScript Code:
import flash.geom.*
import flash.display.*

[code]...

View 0 Replies







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