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


Similar Posts:


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

Java :: Math Behind The Red Ship In Simple Game?

Feb 27, 2012

the game is a little flash component found here:[URL].. i found that link here[URL].. I have been using/converting the examples they give in the second link but cant get my "missile" to behave correctly. I am using java and andEngine combo. Here is what I have right now:

[Code]...

this code just makes the object travel to the upper right hand corner of the screen and it doesnt move after that. so i am missing something

my end goal is to have an object that will chase the users touch coordinates. I know how to have the object follow such coordinates but I dont want it to follow the exact path, but rather the shortest path to the most updated coordinates. so more like an intercept course

View 1 Replies

ActionScript 3.0 :: Simple Space Ship Game - Motion Synchronization

Oct 12, 2010

I was trying to make a game with simple spaceships and a bullet that is supposed to hit them and delete them on screen. As all ships are deleted the level gets up by one, increasing number of ships to delete. I think the collision detection part of my program works fine, but their is some problem in their motion synchronization.

Code:
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
public class HitGame extends Sprite {
[Code] .....

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

ActionScript 3.0 :: 1009 Error In Very Basic Game?

Apr 2, 2009

I'm currently making the basic groundwork to a game. On my main timeline I have two frames. The first frame has the 'start screen' let me say, which actually is a little different to the norm in that you can move your character across the screen and activate thinkg to pop up like instructions, so kind of making agame of your standard first screen if that makes sense, like the opening to the game Braid.I have it so that when the character touches (hitTestObject) a square the frame goes to (gotoAndStop) frame 2, and then on frame 2 the actual game will start.The error is this: TypeError: Error #1009: Cannot access a property or method of a null object reference.at gameBasis_fla::MainTimeline/startGame()It shows on the output panel for my three functions - one function is for keypresses, the other for an enter_frame popup animation and the other is the function which takes the game from frame 1 to frame 2!

ActionScript Code:
function fadeOutF(evt:Event):void{
if (characterBoy_mc.hitTestObject(house_mc)){

[code].....

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

Programming Languages - Add A Basic Card Game To Site?

Feb 12, 2010

Are there any relatively simple programs for building flash applications. I want to add a basic card game to my site, that can keep track of the user's score. The site right now is built in just html, though I will be changing it over to php shortly to implement a log in system. I'd really like to avoid having to learn actionscript on top of it, there has to be some sort of.. basic wysiwyg type flash builder out there?

View 2 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 A Basic Escape The Room Game In Flash?

Feb 9, 2012

I'm currently trying to make a basic escape the room game in Flash, and for some reason the last couples of entries I have made for the code aren't working. Right before adding these lines, everything worked and I already know that each object has been converted into a movie clip or button and has the correct instance name.

[Code]...

View 1 Replies

ActionScript 3.0 :: Working On A Basic, Horizontal Shooter Platform Game - Make Enemies Move Smart, Towards The Player?

Oct 3, 2011

i am an newbie as3 developer, and i am working on a basic, horizontal shooter platform game.and my question is: how can i make enemies move smart, towards the player? ( but ofcours you are in able to dodge)so like, an enemy is moving to me so when i am not dodging, it will hit the player.

View 2 Replies

ActionScript 2.0 :: Create A Basic Interaction Between Flash And ASP.net V1.1?

Sep 17, 2007

I'm trying to create a basic interaction between flash and ASP.net v1.1.In flash code I'm using the LoadVars function and on asp.net page I'm using "Response.write" to return the value to flash.I have a flash button which send the load to the asp.net.(meaning the first time I click the button , the asp.net page is called and return the value , but the second time nothing happens!)

Here is my code:

FLASH:
---------------

Code:
function doCheck()
{
checkSessID = new LoadVars();
checkSessID.onLoad = function (serverIsOnline)

[code]....

The first time in click on the flash button the doCheck() function is called and the sendResponse function (which is in the "IMService.aspx") return the value to flash.Then , when clicking the second time on the button , nothing happens.

View 2 Replies

ActionScript 3.0 :: Basic 2D Game "camera" - Move The Character Using The Keyboard?

Jul 27, 2009

Everything going well so far except for camera control. I want the character to always be in the center of the screen. only when the side boundaries are reached, the character should leave the center of the screen to be able to reach the sides of the screen.Somewhat like this: http:[url]....I've tried 2 ways but both without succes:

- move the character using the keyboard, but somehow keep it in the center of the screen (have no idea on this one)

- move the entire area except the character to simulate movement.

This seems kind of ineffeciant but it worked out better that the previous attempt, the only problem is that the character doesn't return to the center of the screen when he leaves the boundary.The .fla's are available for download here http:[url]....

the actionscript is all in the first frame.try not to be too hard on the crappy visuals Ignore the comments too, theyre only there to help me understand what I did.The boundaries seem to be a bit sketchy aswell when moving to the sides, but that's not a big problem right now.

View 4 Replies

Professional :: Create A Basic Slideshow With Multiple Images?

Mar 26, 2011

I have Flash CS5 and want to create a basic slideshow with multiple images. how to create a slideshow (must be detailed because I'm new to Flash)?

View 4 Replies

Actionscript 3.0 :: Create A Basic Flash File With A Little Plane

Jul 5, 2009

I want to create a basic flash file with a little plane that is constantly flying. It never stops just keeps on moving. Now it would be fairly simple to do that but i want to be able to rotate the plane using the arrow keys. Once the plan is rotated I want the plane to fly in the direction of the rotation.

I could easily keep increasing the planes x value but that will make it fly only to the right I want to be able to make the plane fly freely.

[Code]....

View 2 Replies

ActionScript 3.0 :: Create A Basic Username And Password 'menu' In Flash

May 6, 2011

I kind of understand how to create a basic username and password 'menu' in flash.[code]But I would like to create a menu where a user can create a new username with then will be added to an exteral file ( data base I guess).From there on anything the user does is remembered on that name. And if that user exits the program and loads it again the user's stats are loaded.

View 4 Replies

ActionScript 3.0 :: Create A Standard Production Of Visual Basic System?

Apr 6, 2011

I am trying to create a standard production of visual basic system, on Flash CS5. It's an interactive system made in Flash, but the house style is as of Visual Basic. I have almost completed the project however I am finding it difficult to:-

a) If the user types into textboxes in one stage on flash, it should appear down on another screen on another textbox, simultaneously.

b) How to validate textboxes in flash so that the user can only type in certain characters, for example the user would fill in the textboxes when asked about coding in visual basic. At the end of the screen by clicking next it would check the textboxes and if the characters are incorrect it would display an error message, and if correct proceed to the next screen.

This coding is the closes't i got to solving my problem about validation, I have also read a number of ActionScript books but no luck there. I have also searched the net but could not find what i am looking for, all i got was validating using passwords from parameters.

[Code]...

View 1 Replies

ActionScript 2.0 :: Unable To Create Basic Button To Play Movie?

Sep 2, 2004

I'm trying (and failing it seems) to teach myself Action script and I'm having a really tough time with what I'm sure is something that quite easy to do. Basically I have one button. When this button is pressed I'd like it play a movie. When the button is pressed again I'd like to stop playing the movie. In the first frame of the movie I've put a stop action so that it doesn;t repeat itself when it finishes playing. In the last frame of the movie I've put gotoAndStop(2);In my main timeline I have 2 layers each of which has one frame. The button is one layer and the movie on the other.

I selected the button on the stage and gave it the actionscript
on (press){
gotoAndPlay("vcsound_mc.play(2)");

[code]....

View 5 Replies

ActionScript 3.0 :: Create A Tamagotchi Game Type Game?

Mar 28, 2012

im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:

Code:
package {
import flash.display.MovieClip;
public class TamagotchiGame extends MovieClip {

[code]....

I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.

View 2 Replies

ActionScript 3.0 :: Create A Basic Flash Drawing Tool For An ELearning Project?

Jan 19, 2009

i'm a newbie using Flash CS4 and AS3. A retired social worker, I need to create a basic Flash drawing tool for an eLearning project to teach students how to draw their family tree.

The drawing tool would allow the students to add multiple circles and squares to symbolize their family members, plus text labels for names, ages, and they would need to be able to draw connecting lines between the circle and square symbols. Finally, in order to continue work on the drawing, over time, they would need to be able to save their drawings to be re-opened and edited (add new symbols, erase incorrect ones, etc.). Once the drawing is completed, they would need to be able to print a copy.

Being a newbie (but I have done some related scripting: JavaScripting-ECMA-262, HTML, CSS), I am not sure if this can be done in AS3, Flash CS4. But, if it is possible, I would like to learn how to create this.

View 0 Replies

ActionScript 2.0 :: Basic GetURL Action [FMX] - Create A Link To Open A Webpage

Apr 22, 2003

I am creating a movie, and need to create alink to open a web page. My movie exists in a folder ("Flash") and I need to move up a level(out of that folder), and into another folder, (HTML) where the page I need to open resides. What would the path name need to be ie: ..HTML/default.html?

View 5 Replies

ActionScript 2.0 :: Create A Basic Menu System Rollover And Roll Out Of All Links?

Jan 12, 2009

I'm in the process of learning OOP and have run into a small problem. I'm trying to create a basic menu system where you can rollover and rollout of all links. When you select a link, it stays highlighted until you click another link.I've given the 5 links instance names like (link0, link1, link2, link3, link4) and given them each an ID of (0,1,2,3,4) - respectively. I used to be able to do something like this:

Code:

this.onRollOver = function(){
if(this.ID != _root.selectedLink){
this.gotoAndPlay('in');
}

[code]....

View 1 Replies

ActionScript 2.0 :: Making A Tycoon Game And Have A Few Queries To Do With Controlling Sound?

Oct 17, 2009

I'm making a tycoon game and have a few queries to do with controlling sound. I have two buttons, one is my play button playBTN and my other is my stop button stopBTN. Now i want to play the song mainSong using actionscript from the second frame, but I also want to play the song without it going over the top after you release playBTN.

P.S: I'm sure the stopBTN code is:
ActionScript Code:
on(release){

[code]......

View 5 Replies

Actionscript 2.0 :: Create A Basic Flash Script To Load An External Swf File Using MovieClipLoader Class?

Mar 17, 2009

I am trying to create a basic flash script to load an external swf file using MovieClipLoader class. Here's my code:

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myMCL.loadClip("splash.swf",5);

I simply copied it from a tutorial. Unfortunately it throws an error message as follows:

1046: Type was not found or was not a compile-time constant: MovieClipLoader
1180: Call to a possibly undefined method.

PS: I have CS3 professional in my machine but I am following Flash 8 book. But my CS3 application supports AS1, 2 and 3.

View 4 Replies







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