IDE :: Create Trail For Sky Rocket/spaceship?

Nov 12, 2009

I�m working on an asteroid game and don�t get it to create a nice trail for my spaceship(s).It doesn�t need to look spectacular, just "nice".I tried a comic look alike version with angled mc�s, whose scale are tweened down and up. But it�s not the right look.And I tried some flame effects by as3, but it not seems to be a smart solution. Nice look, but needs a lot of memory space.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Create An Enemy Spaceship That Has A Simple AI?

Jul 31, 2011

i.e. everytime the spaceship reaches a point a new one will be created randomly and the ship is flying to it (etc., etc.)Problem is that it doesn't really work because after the ship flies around for some time it suddenly stops to move. It's a matter of time. Sometimes the problem occurs after 5 seconds then again the spaceships flies around for 2 - 3 minutes and stops the movement immediately.Currently I have no clue where the problem is. I already checked the distance function but so far it seems to be okay

This is the code (just an excerpt):

Code:
private function update(timeDifference:Number = 0):void
{
var step:Number = (timeDifference / 1000) * timeBasedUpdateModifier;
for each (tempEnemy in enemyManager.enemies)

[code]....

View 7 Replies

ActionScript 2.0 :: Create A Basic Spaceship Flying Game And The First Ive Got Is Controlling The Ship?

Nov 14, 2004

im trying to create a basic spaceship flying game and the first problem ive got is controlling the ship.the controls i need are thrust and left-rotate and right-rotate. much like this,[URL]..at the start this tut mentions 'game control tutorials' does anyone know where these are? i think i would find these useful. the above tut doesnt go into scripting.

[Code]...

View 4 Replies

ActionScript 2.0 :: Create A Mouse Trail That Has Random Movement?

Mar 3, 2002

I'm looking for a tutorial, or for the scripting to create a mouse trail that has random movement, but that follows the mouse - also i have seen one, ca't remeber where, that casts 'shadows'?

View 14 Replies

ActionScript 3.0 :: Create A Fade To Transparent Trail/follower Using ColorTransform?

Mar 5, 2009

I trying to create a fade to transparent trail/follower and I'm doing this using ColorTransform.The problem is that it simply sets the alpha value of the bitmap to 0.7 al the time, it doesn't fade at all.

Code:
import caurina.transitions.*;
var bmd:BitmapData = new BitmapData(550, 400, true, 0x00000000);
var bm:Bitmap = new Bitmap(bmd);[code].....

View 1 Replies

ActionScript 2.0 :: Add MovieClips From The Library At Runtime OnEnterFrame To Create A Trail Behind The MovieClip?

Mar 10, 2011

I want to add MovieClips from the library at runtime onEnterFrame to create a trail behind the movieClip that is moving on stage:
[Code]...

This just creates one instance of a movieClip "Follower". But how to make trail like effect - adding movieClips onEnter frame and positioning them according to "mcToFollow"?

View 4 Replies

ActionScript 2.0 :: Animate A Rocket Flying?

Aug 16, 2010

I am trying to animate a rocket flying. I know there is a way you can use the line tool/ pen tool to draw the path in which you want the rocket to go?

View 3 Replies

ActionScript 3.0 :: How To Make Reusable Rocket Classes

Jul 11, 2010

The sequence basically involves rockets being fired when an appropriate timer event is triggered. Each instance of a rocket has a code which looks for a mouse click event, and then tells it's parent (I've called it "gameplayzone") to remove it from the scene.I've got a problem where:I'd also like to be able to update a score variable held in the gameplay zone (add 50 to it's current value for example)I also want it to modify a "lastcolour" variable in the parent, which is a string. The lastcolour variable is used to see if the play is clicking rockets of the same colour, which is used to calculate a combo points bonus.

The biggest issue however is that I'd like the gameplay container to simply be able to add a new instance of a rocket when I want to, but also define that specific instances values (x position, y position - but also xVel, yVel and yAcc which are properties inside the rocket class)This is a blunt question, but... What's the best way to do this?

View 5 Replies

Homing Missile - Making Rocket To Turn Around If Target Bypassed

May 12, 2011

I'm trying to create a homing missile in AS3. Easy enough when you want it to simply follow a point perfectly - but I'm trying to make the rocket have to turn around if the destination (target) bypasses it. Here's what I've got - it almost works, but as you can see it's quite glitchy (particularly if the mouse is to the left of the rocket (seems to work OK if it's moving right). [URL]

Here's my Rocket class:
package {
import flash.display.Sprite;
import flash.geom.Point;
import flash.events.Event;
public class Rocket extends Sprite {
[Code] .....

View 2 Replies

Actionscript 3 :: Rotating The Projectiles ALONG With The Spaceship

Sep 4, 2011

I want my spaceship shoot two shots at once. So I used my first array of projectiles and placed them at the right side of the ship (one shot on the left and one on the right). So far so good. But when I shoot with my spaceship and I turn around the rotations of the projectiles look very strange. It's hard to describe so here's an image that shows the error in action. [URL] I have huge problems rotating the projectiles ALONG with the spaceship so that it looks really good. Currently there is one single shot only. My shooting gets screwed up when I rotate and fire at once. The goal is to create a dual firing cannon like in the picture shown. Here is some code that places the projectile at the left of the ship (that doesn't really work):

[Code]....

View 1 Replies

ActionScript 3.0 :: Add Flames While Spaceship Is Flying?

Aug 10, 2010

Im trying to add flames while my spaceship is flying. When forward button is pressed the flame appears from the center of the ship and when the right or left button is pressed the flame appears from the right or left side of the ship, I tried to use gotoAndStop, but it only shows frame by the last pressed button, if I press two keys at same time I see only one flame. What should I do to see two frames at the same time?

View 4 Replies

Actionscript 3.0 :: Papervision 3D Spaceship Movement?

Jul 22, 2011

I am working on a spaceship flying simulation in PV3D. It's a simple concept, when [SPACE] is pressed, the ship moves forward. The [mouse position] controls the direction the spaceship travels. Similar to this video http:[url].... (though i do not need it to do banks and rolls or anything fancy yet, the video is just to put an image in ur head).I am using these Trig equations to calculate the X, Y, Z velocities,

velocityX = Math.sin (shipdae.localRotationY * Math.PI / 180 ) * speed;
velocityY = Math.sin(shipdae.localRotationX * Math.PI / 180 ) * -speed;
velocityZ = Math.cos(shipdae.localRotationY * Math.PI / 180 ) * speed;

View 1 Replies

ActionScript 2.0 :: [MX] Spaceship Control - Rotation & Thrust

Nov 14, 2004

im trying to create a basic spaceship flying game and the first problem ive got is controlling the ship. the controls i need are thrust and left-rotate and right-rotate. much like this, [URL] at the start this tut mentions 'game control tutorials' does anyone know where these are? i think i would find these useful. the above tut doesnt go into scripting. at the moment to control rotation i have,

[Code]...

View 4 Replies

IDE :: Movieclip - Spaceship Will Fly Across The Screen And Then Stop In The Center

Jan 30, 2009

stop a movie clip..... here is my code:

ship_mc.onEnterFrame = function() {
ship_mc._x += 15;
}

What I need is this clip to move until x = 151, then stop. My spaceship will fly across the screen and then stop in the center...how do I make it happen?

View 1 Replies

ActionScript 2.0 :: Use Something Other Than Text As A Trail?

May 26, 2005

What I want to know is; can I change the colour of the trail too?And is it possible to use something other than text as a trail?

View 2 Replies

ActionScript 2.0 :: Cs4 - Motion Trail Out Of Synch

Sep 8, 2010

I have created a bouncing logo (similar to a screensaver). The MC loops and I have added some motion trail using dupe mc's, however when the main MC loops back to the start, the motion trail seems to go out of synch and fall behind in its positioning. I have attached the FLA to show you what I mean and you can see the AS that I have used.

View 2 Replies

How To Make Fading Out Trail Behind MovieClip

Dec 6, 2011

How to make trail behind movie clip. I suppose it should be some kind of duplicate mc function but dont know how to write it. For example there is rectangle (mc) on screen when I click on it should move to the left but it should leave copies of itself behind it with different opacity, closer copies should be more visible and they all should fade out (I mean trail not main rectangle), it should look like circular animation which are often used in some flash video players where rectangles are rotating around center point but they aren't all same opacity.

View 2 Replies

ActionScript 2.0 :: BitmapData Motion Trail ?

Feb 7, 2012

I've been experimenting with the following tutorial (scroll down to "Eye Candy 1: Trails"):[url]...........I can get it to work like his example, but I would like to apply it to my game which works a bit differently. Rather than having a player-controlled mc move around on the stage, I place the player's character in the center of the stage and have their actions control the level around them (tl;dr the player doesn't move, but the level does).My approach was to determine the location inside of "level" that matched up with center stage where the "hero" is located. Then, rather than place the trail effect on _root, I would place it at this location inside of the level.See below for my code:

Code:
_root.level.attachMovie("trail_sprite", "trail_mc", 8000);
trailbitmap = new flash.display.BitmapData(1000, 800, true, 0x000000);
_root.level.createEmptyMovieClip("trail", 1);[code]..........

View 1 Replies

ActionScript 2.0 :: How To Make A Mouse Trail

Jul 14, 2006

how to make a mouse trail?

View 2 Replies

ActionScript 2.0 :: How To Stop A Mouse Trail

Feb 16, 2008

i have a mouse trail that loads in frame 1 with this script...

[Code]...

but i want to stop this at frame 3... does anyone know how to do that? (i only want it to run while my preloader is active.

View 3 Replies

ActionScript 2.0 :: Make A Mouse Trail?

Mar 11, 2002

I'm trying to make a mouse trail, and the duplicated MCs are supposed to become lighter and lighter.

duplicateMovieClip (_root.dragger, drag1, 1)
drag1._alpha=75

thats my code...why's it not working? I got that from the Elastic Ball Open source.

View 12 Replies

Actionscript 3 :: Flip Effect Leaving A Trail?

May 26, 2011

I'm trying to create something with a flip effect tutorial from tutplus - [URL] However my flip area is much bigger than the tutorial, it's 900px wide. Everything works fine except that it leaves a trail when the width is that big. You'll see it when you flip it a few times. Someone else posted the same problem in the comments from last year, but no one replied. Does anyone know a solution to this?

Edit: Here is a screen shot: [URL] The front is purple and the back is white. As you can see it left a bit of the purple as the page flipped to white. I couldn't get a screen shot of it turning, but it's even more obvious as the page is actually flipping because the width become narrow which reveals a whole lot more that's left behind on the page.

View 2 Replies

ActionScript 2.0 :: Movie Clip Alpha Trail

Apr 6, 2004

I'm having trouble getting my movieclips to have trails that fade behind it. I'm having the dupilcate movieclips delete themselves once their alpha reaches a certain point. what's wrong with my code? I'm pretty sure it has something to do with the counters. You can view my fla here: [URL]

View 5 Replies

ActionScript 2.0 :: Put In The Code For Mouse Trail On Website?

Jun 29, 2006

I tried to put in the code for mouse trail on my website but it doesnt work? is it a flash thing? can someone please show me the html code to add text mouse trail effect like the one on this site?

View 4 Replies

ActionScript 2.0 :: Draw A Line, Leave A Trail?

Apr 3, 2008

I have a basic line drawing animation - a ball moves along a motion guide path and leaves a line. What's a good way to do this with ActionScript 2.0?

I've looked at 99 fantastic tutorials on how to make a line in space from A to B, as well as shapes.

View 5 Replies

IDE :: Change Mouse Trail Text Color?

Feb 5, 2009

[URL] from here i understand the action script. i want to change the text color so i did this:

Text = "welcome to darkside";
letters = Text.split("");
letterformat = new TextFormat();

[code]....

here i added this action so i can change the color do i need to include the code for white color? or just teh name iv tried both ways the text color stays teh same! and then all of this after it:

spacing = 8;
speed = 3;
for (var LTR = 0; LTR<letters.length; LTR++) {

[Cdoe]....

View 6 Replies

ActionScript 2.0 :: Movie Clip Alpha Trail?

Apr 6, 2004

I'm having trouble getting my movieclips to have trails that fade behind it. I'm having the dupilcate movieclips delete themselves once their alpha reaches a certain point.

View 5 Replies

ActionScript 2.0 :: Mouse Trail With Multiple Images?

Dec 27, 2004

so how should i modify the script, when i want to use three small, different images instead of just one (imagine three stickmen chasing the cursor as if connected there with an elastic band) ? i tried, but this bypasses my beginner's skills by far

View 7 Replies

ActionScript 2.0 :: Mouse Trail Effect For An Object?

Oct 23, 2003

i am trying to create a trail behind an object - like a mouse trailer. i have found many mouse trailer scripts but do not know what to adjust so that it will follow an object/symbol...

//initialization
d=1;
speed=10;
ssize=10;

[Code].....

View 5 Replies

Professional :: Make A Orbiting 3d Light Trail Like 2advanced?

Feb 22, 2012

I'm just re-learning Flash after a 12 year break. How can I make the 3d orbiting light trails that appear on the 2advanced video on YouTube? Here's the link: [URL] Is it simply a case of making a single trail and then animating a mask along the trail to give the effect of movement?

View 1 Replies







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