ActionScript 2.0 :: Space Shooter - PowerUps And Level End

Oct 27, 2002

I'm trying to make a space shooter type game, and I followed a tutorial on flashkit, and I have all that done, but. How do you do powerups? And how can you make the level end? And how can you make a boss? How do you make a powerbar instead of just "Lives" going down when you get hit. I am also doing a FPS type game related to star fox.
*SCREEN SHOT*

View 11 Replies


Similar Posts:


ActionScript 3.0 :: Creating A Vertical Scrolling Space Shooter Game For Deployment On Mobile Platforms Using AIR?

Oct 22, 2011

I am in the process of creating a vertical scrolling space shooter game for deployment on mobile platforms using AIR.I've used some excellent tutorials online, video tutorials on Lynda and several books, including Game Programming University.Something they all seem to gloss over are the various screens that will be used.

For instance, my game right now will use a splash screen, a main menu screen, a credits screen,a settings screen, a difficulties screen, an instruction screen, an end game screen and save/load screen...and a play game screen, where the actual game will be played.I've created the screens as seperate frames in the main timeline with stop commands in between and code on each page (I know... bad!... but easy).So basically,they can navigate through the menus using buttons (mouseclicks, which will work with touchs as well) and when they are How do I pass data between them? I was thinking of storing it in shared object.

View 1 Replies

Low-level Code Required To Render Texture (BitmapData) To Stage3D In 2D Space?

Oct 13, 2011

I've looked at the following website for some information on writing AGAL to render Textures / Bitmaps to the Stage3D object: url...But it seems to cover more about how to create objects in 3D space. Maybe it can't be avoided?What would be the bare-bone necessary AGAL code & AS3 code to write to render multiple sprites to the Stage3D?No Filters, Effects or Shaders required - just position, scale and rotation transformations. Also, I'm not looking for existing 3rd party APIs that do this under the hood. I would like to experiment this low-level language myself.

View 1 Replies

ActionScript 2.0 :: MovieClip - How To Get PowerUps To Create Warphole Effect

Nov 11, 2011

I have 5-6 different movie clips spawning all the time, they're powerups. If I hit one specific powerup, I want the other spawned movie clips to preform an animation. I have done this already, and it works, but it doesn't work on this one movieclip. I've checked the coding endless times, checked the linkage... tried different things and it still won't work.

To explain this better to you, I have a rocket game and when the rocket hits a warphole, the powerups which are on screen blur up and rush off screen to create a warphole effect. It just won't work on the background stars (while it works on the powerups). I'll explain how this works before I put the flash. For example, one of the powerups are satellites, which gives the rocket fuel.

However if there are both satelites and a warphole are on screen, and if you hit the warphole, the satelite blurs up and rushes down off screen. The coding located for this is on the warphole mc, and the blur animation is located in the satelite mc. I have also done this with the meteor, and I plan to do it on the rest of the objects. [URL]

View 2 Replies

ActionScript 2.0 :: Create A Level Select Screen So The Buttons Unlock Complete A Level?

Apr 22, 2011

im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:

on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}

[Code]...

View 0 Replies

ActionScript 1/2 :: OnLoad Working At _root Level But Not At Mc_target Level?

Aug 26, 2010

I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF.  Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1.  When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1.  However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not.  Here's my AS2 code:
 
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{    trace("loaded"); //This works    removeMovieClip(mc_Empty1.mc_FadedBg); //This works}

[code]....
 
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not. 

View 3 Replies

ActionScript 3.0 :: Application Level Vs Document Level Class Paths?

Oct 2, 2010

This is making me a little kooky today. I thought I could defined a library path in PREFERENCES > ACTIONSCRIPT > ACTIONSCRIPT 3.0 SETTINGS then that library would be available to all AS3 FLA files, but that doesn't seem to work for me. If I use the PUBLISH SETTINGS and define the library path everything is fine.

Is there something that I could have done to disable the application level class path functionality? I guess I'm trying avoid having to set the library path for every new FLA I'm making.

View 1 Replies

ActionScript 2.0 :: Load Swf From Third Level Into Container In First 'home' Level

Dec 26, 2011

I'm doing a bigger aplication in flash (as2).Image, there is a main "home" flash with several menu buttons.Clicking these buttons, I load external swf into an empty container in this "home" flash.[code]clicking buttons in this second level, will load external movies into an empty container in this SECOND LEVEL swf.This works fine, but now, coming to the THIRD LEVEL (don't think there will be more in the future) problems come up, some scripts won't work.Now (I'm a as2-beginner) I think, loading external swf ALLWAYS into containers in the first "Home" flash should solve the problem.But I don't know, how to load an swf from the third level into a container in the first "home" level.In the "home" level, I have a "close" button, that will unload the container content.I need to go to a certain scene "content_2" in the home swf, too.

View 7 Replies

ActionScript 2.0 :: LoadMovie - Jump To Level 2 Upon Completing The First Level?

May 9, 2004

i have game im doing, and i want it to jump to level 2 upon completing the first level, but the problem is, the level 2 is a seperate swf, i've tried to use

Code:
on (release) {
loadMovie("level2.swf",2)
}

View 3 Replies

Calling A Swf From1st Level To Go From 3rdlevel To 2nd Level

Dec 2, 2009

I have called main.swf into a container in index.swf.

myMCL.loadClip("main.swf","container"); is an action on my Index.fla timeline.

I have my navigation on index. (i wanted it to go on main, but the nature of the animation meant it had to go on index)

I need to call "home.swf" into "main.swf" from the navigation button in Index.swf.

When I had the navigation on "main.swf" this was my code to call "home.swf" into the page.

on (release) {
Preloader_mc.gotoAndStop("home");
}

("home") is the label name where the preloader is for home.swf

how to call the preloader for home into main.swf from "INDEX.SWF INSTEAD OF MAIN.SWF"

View 5 Replies

ActionScript 3.0 :: Calling Swf From Second Level Swf To Affect Top Level

Feb 2, 2010

I have a file1.swf which loads file2.swf into it. Within file2.swf i have a button that when clicked needs to remove file2.swf and load file3.swf into its place.

View 2 Replies

ActionScript 2.0 :: Link To One Level Below The Current Level?

Sep 16, 2004

Is there a way to link to one level below the current level? Instead of saying _root.level1.level2.level3, something like: ../level3 ?

View 4 Replies

[CS3] Score Counter In A Shooter Game

Nov 24, 2008

I have a simple shooting game set up. 25 monsters appear on the screen, one after another, until no monsters are left. If you hit one before it disappears, the score increases. If you don't, the score stays the same.

In the actions frame, I placed an empty dynamic text box named score, and set it equal to 0 (declared in the main actions frame). But, seeing as though the monster actions are coded into the library item itself, do I have to declare score, and the score increase there instead?

View 4 Replies

F8 :: Glitchy Arcade Shooter Game

Aug 15, 2009

I've only played around with a dressup and dating sim - and coding using actionscript (and coding in general, only done a little bit of VB and Python before). I've been following a nice arcade side-scroller tutorial on this site which has three parts, if you want to view and go over them to help. It was designed for Flash 5 and I'm using Flash 8 Pro.[code]Anyway, as I was going through and coding/drawing the whole thing I came across a lot of problems and glitches (and a lot of times when the game coding would crash and I'd have to abort it and remake the entire coding again). I sort of stumbled around blindly, deleting and editing code to get things to work, and I'm up to the point where I'm almost finished with the thing. It's still glitchy though.I was wondering if any Flash coders could help me out?I'm going to be creating a Flash game for my programming class and I would prefer if it wasn't screwy (if I need to remake it with less cutesy graphics). xD;; If you could download the .Fla file and fix the coding problems I have.

Playable SWF game on my deviantart account.FLA downloadable file (@ Mediafire; no viruses, trojans, blahblah attached)The enemies tend to randomly explode before the missile has even hit them.The original enemy movie clip doesn't even want to explode.The score counter won't tick for each kill.The boundary box (?) of the player/enemy seems to be too big. You die before you should - in certain positions the enemy gets close and I guess the boundary boxes hit, which initiates the hitTest. It seems premature though, I'm wondering if I can reduce the boundary box, or have it so the enemy and player collide on the actual graphic, and not the movie clip box? I have no idea if this makes sense, I hope it does.There seems to be a bunch of other small glitches too.

View 6 Replies

Memory Leak In My Shooter Game?

Oct 20, 2011

I'm very new to flash,and have been digging through google and this site for information on how to piece together an AS2 shooter game.Its going well enough, but I'm having slowdown issues the longer the games runs, and I was hoping someone here could point me in the right direction.To paste an enemy movie clip on the screen, i'm using this:

Code:
var spawn =_root.attachMovie("monster1","monster1"+_root.getNextHighestDepth(),_root.getNextHighestDepth())[code]........

I need them stored in an array so that the player's shots can test weather or not they've hit any monster on the bullet's enter frame function, then call that monster's movie clip's take damage function. I'm using a for loop to do this:

Code:
for(var i in _root.player.foes){
if (this.hitTest(_root.player.foes[i])){
_root.player.foes[i].takedamage();}
}

I think the problem with the slowdown is that each time I place an enemy on the screen the array gets bigger and bigger. The slowdown only happens while the player is shooting, and I suspect the ever longer for loop with the hit testing is causing it.

I'm already removing the monster's movie clips as they get killed or exit the screen, I guess what I need is a way to reduce the size of the array at the same time, or at least tell the for loop not to do a hit test unless the monster is still alive.

View 3 Replies

ActionScript 2.0 :: Making A Top-down Shooter Game?

Mar 17, 2004

I'm making a top-down shooter game. I have keyboard input that moves the ship around and fires a laser.everything works perfect except that when the ship moves diagonal up left, or diagonal down right, the laser can't fire at the same time. It will work in any other direction, including the other diagonals. Just not those two

[Code]...

is this a common problem among movement in games? or do I just need to fix something?

View 1 Replies

ActionScript 3.0 :: Crossdomain Policy File On Root Level Cannot Be Deployed On Root Level? 

Jan 14, 2009

Situation:

- We have a Flash application located on a SAP EP (let's say ep.x.com)

- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)

- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices

Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.

- A crossdomain policy file on root level cannot be deployed on root level

- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.

Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.

Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.

- SAP / Adobe always features the close relationship between their technologies.

Question:- What could we do?

- How does the Visual Composer works around that problem?

View 1 Replies

ActionScript 3.0 :: Developing An Horizontal Shooter Game?

Jan 10, 2012

I just started developing an horizontal shooter game, but how can i make enemies ( movieclips ) moving randomly around the screen?

View 1 Replies

ActionScript 2.0 :: Virtual Shooter - Pause The Game?

Mar 14, 2008

I am playing around with the Vertical Shooter by Ernesto Quezada aka _Bruno

link on kirupa: http:[url]....

how can I pause the game.I added a button, but I need the right coding in AS2

View 1 Replies

ActionScript 2.0 :: Creating A Vertical Shooter Tutorial

Jan 24, 2011

I'm a bit of a newbie to this so I decided to follow this URL...The problem is that the dragons don't stop so I tried adding a time limit like this:[code]Frame 6 is my game over screen and the removeMovieClip works for the knight and the arrows but not for the dragons. They still carry on.

View 2 Replies

ActionScript 2.0 :: Make An Overhead Shooter Game?.

May 18, 2011

Im attempting to make an overhead shooter game. Ive got the basic movement down already, and rotation towards mouse. For when he shoots, ive set it to duplicate a bullet movie clip, but i only understand how to set it towards one graphical direction(ex: x +, y -)

The code i know ive gotta fix is

onClipEvent (enterFrame) {
this._x += laserMoveSpeed;
if (this._x>1000) {
this.removeMovieClip();
}
}

The little x + part has to be fixed, but i have no idea what to substitute in order to make it shoot from the front.

View 3 Replies

ActionScript 2.0 :: How To Delay The Fire - Shooter Game

Nov 7, 2004

'm testing functions to make myself a First Player Shooter game and now I have problem with the fire delay. I want a limit of let's say 1 shot per second. I thought that maybe restricting the clickings counted, so it doesn't register the mouse clicks too close to eachother. Or put some kind of interval at the functions delaying the sound and event function, but that seems too hard.

The game so far:[URL]As u see one get multiple sounds when clicking a lot and it's possible to get several points by clicking the ball a lot.Also, when the ball goes behind the tree it's not supposed to be able to shoot. The Flash File: [URL]It's not the exact same, some junk code trying to make the delay...

View 14 Replies

ActionScript 2.0 :: StarFox Side Scrolling Shooter In MX

Oct 29, 2002

I'm working on a StarFox side-scrolling shooter in MX. I need instructions for the coding of the following features:

|Character Has Lives
|Arwing (ship) Takes Damage
- Explodes After All HP is Lost
|Arwing Cannot Leave the Screen
|Arwing Can Perform Special Moves
- A Barrel Roll That Will Deflect Enemy Lasers

|Game Timer
|Pause

|Power-Ups
- Regain HP
- More Weapons

|A Boss at the End of Each Level
- Boss Has a Health Meter
- Goes to Next Level After Boss is Defeated

View 7 Replies

ActionScript 3.0 :: Tutorials - Creating A Side Scrolling Shooter?

Oct 23, 2009

I'm in the middle of creating a side scrolling shooter and I am wondering if anyone knows any good tutorials for creating enemies?

View 1 Replies

ActionScript 3.0 :: Make A Game That's A Top Down Shooter Kind Of Like Asteroids

Jul 29, 2010

I'm trying to make a game that's a top down shooter kind of like Asteroids, but there are no asteroids, just enemy ships. Anyway, I'm trying to make a radar for it. The area for the ships to shoot eachother in is 2400 pixels length and height. The stage is 650 x 500 pixels. The radar works fine for when I'm traveling up and down, but the enemy ships on the radar move in the opposite direction as the enemy ships on the screen when I move left to right. When I move left the enemy ships on the radar also go right, instead of left.[code]this code is called from a move objects function which is an ENTER_FRAME event if that helps any.

View 8 Replies

Arrays :: Remove Bullets On Collision In Shooter Game?

Nov 24, 2011

I'm trying to create a flash shooter game as my first project. But I can't remove the bullets and enemies when they are hit or off-screen.I've searched for a solution on the problem multiple times and copied about 4 of them (plus I've tried my own ideas) but they are not working.The current method of checking for collisions is:[code]How can I remove the enemies and bullets? removeChild and splice?

View 1 Replies

ActionScript 3.0 :: Simple Vertical Plane Shooter - HitTestObject

Dec 6, 2009

I've been trying to work on this simple vertical plane shooter. I got as far as creating everything and am now on the step to check if my bullet hits an enemy plane or an enemy bullet hits my plane. Because the enemy planes are created dynamically, I am trying to counter that with assigning then names when created so that the bullet knows what to look for. My approach for this might be somewhat wrong though. As for the enemy bullet hitting my plane, I just tell it to look for the instance of the plane already on the stage. Both result in the same error of undefined(the object can't be found).

Here is the code for both bullet collisions and the code for creating enemies.
ActionScript Code:
public function enemyHit(e:Event):void {
//declare i
var i:int;
//check if the bullet hit any enemy object
for(i = 1; i <= MovieClip(root).amount; i++) {
if(this.hitTestObject(enemy + i)) {
trace("enemy hit");
[Code] .....

The bullets have their own class files and the spawn enemy code is located within the fla file.

View 2 Replies

ActionScript 3.0 :: Top Down Shooter Player - Rotation Equals Direction

May 7, 2011

I am very new to flash, I got a player, and the idea is for a top down shooter kind of thing, I got the player to rotate with left and right, and its rotation equals its direction, now how can I make it move forward in its current direction when I press up?

View 3 Replies

ActionScript 2.0 :: Fire Delay - Shooter Game - Shot Per Second

Nov 7, 2004

I'm pretty new to actionscript and so but I manage to read and understand and alter other people's code a little. I'm testing functions to make myself a First Player Shooter game and now I have problem with the fire delay. I want a limit of let's say 1 shot per second. How do I do that?

I thought that maybe restricting the clickings counted, so it doesn't register the mouse clicks too close to eachother. Or put some kind of interval at the functions delaying the sound and event function, but that seems too hard. The game so far: [URL] As u see one get multiple sounds when clicking a lot and it's possible to get several points by clicking the ball a lot.

Also, when the ball goes behind the tree it's not supposed to be able to shoot. The Flash File: [URL] It's not the exact same, some junk code trying to make the delay... The file I used for help (if someone finds it useful for making a game of their own [URL] Here u see the target isn't shot behind the pics. Is that because it is a button there and a mc in my file?

View 14 Replies

ActionScript 2.0 :: [MX]First Person Shooter - Use The Spacebar To Switch Between The Ones Being Viewed?

Apr 30, 2003

I have figured out how to duck out of enemy site. I need to know if i can have two layers running the same thing at the same time, but only one is viewed and you use the spacebar to switch between the ones being viewed. For example one layer is a person ducked behind a box and getting shot at and the other is a person standing in the open getting shot at, to switch from the ducked to the standing you have to use the spacebar. Is this possible?

View 3 Replies







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