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


Similar Posts:


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 3 :: Stop And Reset Wheel Particle - Physics Engine (APE) (latest Trunk)

May 16, 2011

I'm trying to create a simple disappearing action when a WheelParticle hits a special disappearing CircleParticle. Normally the WheelPartical bounces off of a bunch of other CircleParticles, but when the WheelParitcal collides with this CircleParticle, the action Pauses, an animation plays, and when the action resumes, many surrounding circle particles have dissappeared.

The problem is that the WheelParticle needs to just drop from a complete stop, but it continues as if having just bounced off of the, now non-existant CircleParticle.
I'm having trouble clearing out the forces. I've tried init(), addForce() and changing .velocity amoung other things, but it keeps wanting to continue the lateral bouncing movement. I'm using the latest trunk version of APE in order to capture Collision events for sound.

[Code]...

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 :: 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 3.0 :: Endless Blood - No Lag?

Sep 1, 2011

Im building a game where i would like the blood stains (when shooting people) to never disapear. Now i just spawn a movieclip/sprite on the map whenever a body is been hit, and just leave the stain there. The problem is that this gets very choppy after a while and the fps is plummeting...

I also spawn gun shells after every shoots been fired, and thats flawless, it never lags one bit. I guess this is due to the tiny size (compared to the blood stains)?

I would have given up if i would not have found this game, where it works without any lag - at all. In this game the blood stains are never removed and all bodies are still on the ground, no lag. [URL]..

View 1 Replies

ActionScript 2.0 :: Attaching Blood Movie Clip In Depth Below Enemy Mc?

Jun 29, 2009

what i have:guy with gun who shoots bullet,bullet hits enemy,bullet removes itself,blood attaches above enemy but how would i make the blood attach below the enemy?

View 2 Replies

Audio Lags In Long SWF?

Oct 23, 2009

when exporting a long SWF (10,000 frames and higher...of course not over 16,000 cause it won't export) the exported audio in the SWF will slowly start to lag behind the animation until it is completely out of sync by a few seconds at the end of the clip. i have all my sounds set to stream and they are all on the main timeline. this is a straight animation with no actionScript.i run at 24fps and export the audio at mp3/128kbs/best.

Flash CS4
windows Vista 64bit
8gb RAM

View 1 Replies

Flash :: IDE - CS3 Lags On Intel Mac

Jul 11, 2007

I have waited FOREVER for a Universal Binary version of Flash to be finally released. Now that I've finally got it, its performance is less than stellar. I'm running it on a 2.16Ghz Intel Core Duo and 2GB RAM, and there is considerable lag when renaming layers, or when dragging the timeline across a simple shape-tween. Not only that, but when I export movies (Apple+Enter), the pop-up window that plays it is EXTREMELY slow, and it's slow regardless of what's going on, even if I'm only animating a circle moving from point A to point B.

What's going on here? I've tried disabling all but the system fonts, closing the help window, and made sure I have no extensions running. Nothing helps. The horizontal scrollbar in the timeline moves from side to side with great fluidity and ease, but dragging the timeline bar is awfully slow. Did Adobe miss something here? I didn't spend $1800 on this Design Suite to be stuck with a piece of software which runs FASTER on my 2.16Ghz AMD-powered PC (which I built over four ears ago). Macs used to be the top-of-the-line in terms of Photoshop + Flash performance when they were on the PowerPC platform. But this whole Intel switch has really taken a hit on Flash.

[Code]....

View 11 Replies

IDE :: Animation Lags At Certain Points?

Jan 24, 2009

I was wondering whether you could help me with a small problem that I am having with my first Flash animation.

I'm using CS4, and when I export the SWF and view it in Firefox, it skips/lags at certain points in the animation (specifically during some of the fast, "zooming out" text tweens - you'll see what I'm talking about if you watch it below). The odd thing is that it appears to work just fine in IE. The animation isn't that complicated, but it does have a fair amount of text tweens./[URL]..

View 4 Replies

IDE :: FLV As Website Background Lags

Dec 4, 2009

I'm currently streaming an FLV as a website background and I'm having some lag issues with it. The streaming works fine however it lags the website to the point where its difficult to use the button rollovers. This is done in AS3. Here's the link to the website: [URL]. At this point only the first 2 buttons have code on them.

Code Button Roll Over:
stop();
var rewind:Boolean = false;
myBT.addEventListener(MouseEvent.ROLL_OVER,growUP) ;
myBT.addEventListener(MouseEvent.ROLL_OUT,growDown );
myBT.addEventListener(MouseEvent.CLICK,gotoSite);
[Code] .....

I also noticed that the smaller the browser window gets, the less lagg I have. Anyone have any idea why the FLV is lagging the website so bad?

View 1 Replies

Flash Animation Lags - Make It Lag?

Oct 9, 2010

I currently made a flash animation. the background is the only one that is animated and scrolls to the right. But my problem is why it lags? Is there any way to not make it lag? here's a link of the swf file you can view: http:[url]......I tried it on a high spec pc and it does not lag when it is in normal screen(640x480) but when I view it in full screen it lags. There are no scripts or anything in this file just animation.

View 1 Replies

Flex :: Key Down Lags Mouse In Flash With FF

Mar 1, 2011

I'm trying to improve the performance of a flash game we did. It's a game very similar to GTA but for flash... This is why its important that Mouse and keyboard can be used at the same time...

But in Firefox (with the last flash version, and the last Firefox version) in some cases if you press a key (WASD) and you move the mouse, the mouse events are dispached after the keyboard events, when you release the keyboard.[code]...

View 5 Replies

ActionScript 2.0 :: Movie Lags While In Fullscreen?

Mar 18, 2007

I am working on a flash desktop application which requires me to have the flash to appear as full screen when run on the computer. I compiled my flash into executable(.exe) file with mdm zinc but I realise that the flash animation is lagging a lot when it is shown in full screen. I then try to display the frame rate on the movie and the movie is actually running at 10fps when full screen and animating. It returns to about 20-25fps when it is not having any movieclips animating while remaining full screen. It is running all well at 30fps when opened with flash player.

View 6 Replies

ActionScript 2.0 :: Game Lags When Key Is Pressed?

Feb 23, 2010

I'm working on a "storm the house" game and there is a really annoying bug wich causes the game to lag whenever I press a key on the keyboard.This is a pretty big problem since you reload with Space and swap weapons with the number keys.

View 2 Replies

ActionScript 2.0 :: Large User-Generated Map Lags ?

Dec 28, 2010

I've been working on a top-down shooter.I have it set up so that a map can be generated using an array which is loaded from an external .txt file. This works perfectly fine... Until the map generated reaches a certain size.A map size 1850 pixels by 1000 pixels works perfectly fine. But if you double the size, it becomes nearly unplayable. The map is generated from a determined number of 50 pixel by 50 pixel movieclips (they are plain black), each one is created (using attachMovieClip) where ever the array contains the corresponding value.

I thought at first it was the fact that I was moving the entire _root when the player moved (there has to be a better way, suggestions?), but that was dumb considering that the lag exists before the player even starts moving (bullets lag).

View 3 Replies

Create An Image Which Lags Somewhat Behind The Scroll On A Webpage?

Aug 10, 2009

I am looking for information on how to create an image which lags somewhat behind the scroll on a webpage, very simliar to the candle at the bottom of this page: [URL].. If I only knew the name of this effect, I could search out a tutorial for it myself.

View 3 Replies

ActionScript 2.0 :: Video Lags After Buffer Is Complete?

Jul 2, 2009

I'm using NetStream to show my videos, everything works fine except the annoying lagging that I get after the video has buffered. The video simply skips/ jumps to the point that it had buffered to, stops and waits again for the same amount of it to buffer then plays normally.Me changing the seconds that it takes to buffer doesn't effect it. The action script is as follows:

stop();
ns.play("blank");//stops video playing in the background
var nc:NetConnection = new NetConnection();

[code]........

View 0 Replies

ActionScript 3.0 :: Rectangle Lags Behind Mouse Move?

Sep 12, 2009

2. When the image loads, click the "Crop Image" button on the left side3. Start dragging the corner handles around (the mid handles are not coded for yet)4. If you move the handles fast enough and let go, the rectangle does not stay with the handlesI think the problem has something to do with the rectangle I create and use. Notice that once you get the handles away from the rectangles,Here is the code:

Code:
private function grabberdrag(evt:MouseEvent):void {_grabarray[_i].x = _grabbers.mouseX;//move the current handle to mouseX

[code]....

View 1 Replies

ActionScript 3.0 :: Game Slowly Lags To Death?

Jul 22, 2009

This is an issue that I've run into over and over again, and it just drives me insane. Whenever I make a game which stays on one frame for a while (lots of dynamic objects are made, particle effects, bla bla), the framerate very very slowly starts to drag. After a few minutes, it's at about half what it started at, and it steadily drops until the game is unplayable.I use some variation of the following code to clean up dead movieclips:

Code:
e.currentTarget.visible=false;
e.currentTarget.removeEventListener(Event.ENTER_FRAME, moveThing);
e.currentTarget.parent.removeChild(e.currentTarget);

I guess I should mention that I do contain references to the movieclips in arrays, but I splice them out. Is that ok?I'm almost positive that somehow Flash is still keeping track of my old movie clips, even though I feel like I'm getting rid of them. Is there something wrong? Do I have to do some extra special magic to totally banish them forever? Please help. This has been driving me insane.

View 4 Replies

ActionScript 3.0 :: Flash Scrollbar Lags When Embedded Into Html?

Sep 1, 2009

I made a smooth scrolling scrollbar in Flash - it works fine except when I upload it to my server/domain the scrollbar lags a bit and is not really smooth. The swf runs very smooth on my desktop but when embedded into html and uploaded, the movie clip that the scrollbar is scrolling doesn't animate smoothly, it jumps. Is there any way to make it go faster?

View 0 Replies

Actionscript 3 :: Lots Of Movie Clips Make Flash Lags?

Jul 20, 2011

i created a game that has 96 still movieclips and seven more movieclips that basically move horizontally. The lag starts to rise if i add more and more moving movieclips. The game loop just basically, increment the x coordinate of the movieclips, so i don't think i have problems in the game loop.Is it normal the flash will lag once it has exceeded certain number of movieclips??if it's normal, what do you suggest to increase the game's performance?anyway, this is the update method from the game loop:

public function update():void
{
//cek kondisi untuk melakukan spawn char

[code].....

View 2 Replies

ActionScript 3.0 :: FP 9: Fullbrowser Images Transition From Left To Right Using Scrollrect LAGS?

Mar 11, 2009

hi guys, basically quick rundown is:

1. container1-->bitmap image with bitmapData.
2. container2-->bitmap image with bitmapdata.
3. im using the latest tweenmax
4. have correctly added a 2 seperate scrollrects to container1 and container2 that takes the width and height of the stage.
5. tweenmax is only moving the rectangles.

I get the effect i want, however, it still lags a choppy animation. Anyone know how come?

View 3 Replies

ActionScript 3.0 :: Embedding Subset Font - Small Size But Computer Lags

Jun 1, 2010

I embedded some characters using embed tag in flash CS3(font.swf). 2 separate swf(a.swf,b.swf) loads the font.swf on runtime. These 2 swf are being called from a container(parent) swf. It looks find locally and not time consuming to load. But when I view it from a server, computer lags after a while....(all file sizes are relatively small.around 160kb). What needs to be done in order to prevent computer from lagging? Is it better to load font.swf not in separate swf but directly in container(parent).swf?

View 1 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 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

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 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







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