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


Similar Posts:


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

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

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 :: [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 :: 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 :: Papervision 3D Plane Flying?

Jul 22, 2011

I am having trouble getting a spaceship to fly through space in 3 dimensions. I was wondering if anyone knows of like some good example source code for 3D plane flying movement?

Or if someone could point me in the right direction for the Trigonometry equations,

View 0 Replies

ActionScript 2.0 :: How To Do Effect Like Flying In Space

Mar 3, 2009

[URL]. When u click one of the icons there you will see they are floating very smoothly how to do that?

View 4 Replies

ActionScript 3.0 :: Color Objects That Are Flying Around In Space Game?

Jul 5, 2011

trying to color objects that are flying around in my space game.When I shoot and hit them - the affected enemies shall blink. The graphics are pre-rendered (i.e. there's an rotation array and function where the degrees and their appropriate rotation for the objects are stored / calculated for better performance).

So - my idea was to enhance that rotation function with a functionality for additional coloring; but the colored AND rotated objects shall be stored apart of the normal rotated objects. To accomplish this I made a nested array:in row one there are 360 rotated graphics of one object and in row two there are 360 graphics of a rotated and colored object.

Problem: Coloring works but they are not rotated (always at 0 degrees).

Code:
public function createRotationWithColorBlitArrayFromBD(sourceBitmapData:BitmapData, inc:int, offset:int = 0):Array
{
trace("sourceBitmapData.width=" + sourceBitmapData.width);

[code]....

View 4 Replies

ActionScript 3.0 :: When Implement HitTest - All The Objects Stop Flying For 1 Second

Apr 11, 2010

When I implement the hitTest all the objects stop flying. Is it becaus too much is happening and the CPU has to think - I don't think so - my game is so basic. By the way, somewhere along the line I will use loops and arrays but at the moment I know what's going on in my code.

[Code]...

View 12 Replies

ActionScript 3 :: Object Flying Around And Shooting - Rotation Values?

Apr 6, 2012

I got an object (called tempEnemy) which is flying around and shooting. The problem is that I can't keep the value tempEnemy.rotateTo positive, i.e. It shall be between 0 and 359 degrees. Currently rotateTo ranges from:
rotateTo < 0 (bug) && rotateTo > 0 && rotateTo > 359 (bug).
tempEnemy.dX = tempEnemy.destX - tempEnemy.x;
tempEnemy.dY = tempEnemy.destY - tempEnemy.y;

//I added 180 because my tempEnemy object was looking and shooting to the wrong direction
tempEnemy.rotateTo = (toDegrees(getRadians(tempEnemy.dX, tempEnemy.dY))) + 180;
if (tempEnemy.rotateTo > tempEnemy.frame + 180) tempEnemy.rotateTo -= 360;
if (tempEnemy.rotateTo < tempEnemy.frame - 180) tempEnemy.rotateTo += 360;
tempEnemy.incFrame = int((tempEnemy.rotateTo - tempEnemy.frame) / tempEnemy.rotateSpeed);

View 2 Replies

Actionscript 3 :: Create A Flying Tile 3D Transition Just Via Classes?

Feb 14, 2012

I have been looking all over the internet for a tutorial to which will show me how to re-create this effect on images.[url]...

I dont want to install these 3rd party components, because the project I am working on at present, may in future need to be edited by other designers/developers.

Is there anyway to do this just via scripting?

View 1 Replies

ActionScript 3.0 :: Effect With Flying Letters To Form Word

Nov 22, 2010

I have a client who has seen an effect where letters fly around and then come together to form words like this: [URL]

View 2 Replies

ActionScript 3.0 :: Papervision - Flying Zoom In Camera Function Example?

Apr 13, 2011

How should I code/setup a camera animation where the camera zooms in on an animation (just cubes) and when it reaches the appropriate view the animation starts?

View 1 Replies

ActionScript 2.0 :: Create An Object Flying Around Using Random Movement?

Jun 11, 2005

Trying to create an object flying around using random movement. Instead of a straight line bounce-off-the-wall movement, I'm trying to get it to move in a curved path like a bee flying around.

View 1 Replies

ActionScript 2.0 :: Ship Starts To Pull Left After Flying Around With It?

Jul 7, 2005

why the ship starts to pull left after flying around with it for a bit (use arrow keys to controll)all code is on the movieclip.

[AS]
onClipEvent (enterFrame) {
if(!start1){[code]....

View 4 Replies

ActionScript 2.0 :: Flash8 : Create A Movieclip In Which Different Colored Birds Are Flying?

May 19, 2009

I am trying to create a movieclip in which different colored birds are flying..I am tring to duplicate two or more MovieClips at the same time..but only either of them Works How should I modify the code so that I can achieve that ?

PHP Code:

function birds() {
for (m=1; m<=10; m++) {
firstEnem y= "bird"+1;

[code].....

View 2 Replies

Professional :: Flying Bird MovieClip - Creating Multiple Characters

Sep 1, 2010

I've created a flying bird movieclip. Now I just want to make a flock but I don't want to use action script. I can reuse the same movieclip but then they are all identical. They are all flapping their wings at the same time. Which isn't really realistic. And any changes I make to one of them, they all change. What I want to do is say, if I click and drag my bird animation into the stage three times I'll have three flying birds. But now I want to change them individually. For example, have each flapping their wings at different speeds etc. Is this possible?

View 2 Replies

ActionScript 3.0 :: Flying Object Leave Glitter Behind That Floats To Ground

Oct 21, 2010

I've got an object flying through the air, but I want it so that the object leaves a trail of glitter behind itself and that glitter floats to the ground. What would be the best way to do this?

View 2 Replies

ActionScript 3.0 :: Create Realistic Smoke Coming Out From Back Of A Missile Flying On Stage?

Aug 10, 2009

How to create realistic smoke coming out from the back of a missile flying on stage?

it's for a top-view arcade-type game, where the player shoots a missile from a plane...

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

Professional :: When Press On The Button The Stars Will Be Flying From The Button And The Sound Will Play?

Jan 29, 2011

i'm designing a website in flash8... now i have created some buttons, and i want that when i click on the button stars will fly from them and there will be a sound... i have already created the animation of the stars seperatly and it's in the library, i have also the sound file.... i just can't remember how to put everything together.... when i'll press on the button the stars will be flying from the button and the sound will play?

View 3 Replies

Professional :: Can't Seem To Go To A Master Edit File That Is Supposed To Show Both The Body (layer 1) And Wing (layer 2) Of A Flying Bird Animation?

Feb 11, 2010

I can't seem to go to a master edit file that is supposed to show both the body (layer 1) and wing (layer 2) of a flying bird animation. Is there a way to merge these two since I'm planning on shrinking it down and making a lot of birds?He merged the two layers at 14:24 of the video without even explaining how he went to this so called "Edit Master Movie Clip" that seems non-existent on Adobe Flash CS4.

View 1 Replies

IDE :: Get The "flying Paper" Effect In Flash CS4

Feb 18, 2009

I am going nuts trying to find out how to get the "flying paper" effect in Flash CS4. how to accomplish this paper effect?

[URL]

View 14 Replies







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