Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-20-2007, 10:21 PM   #1
IamtheeApocalypse
Registered User
 
Join Date: Apr 2007
Posts: 4
Default [AS2] Problem with shooting

O.K. well I am making a spaceship type game and when I press space to make my ship shoot it shoots but if I move to the left or right afterwards the bullet will follow the ship any help?
Attached Files
File Type: zip flash game.zip (31.7 KB, 109 views)
IamtheeApocalypse is offline   Reply With Quote
Old 04-20-2007, 10:29 PM   #2
rrh
throw a trace() in there
 
Join Date: Dec 2006
Posts: 1,982
Default

You are duplicating your lasers inside of the spaceship movie clip.

You could put the lasers outside of the spaceship.
rrh is offline   Reply With Quote
Old 04-20-2007, 11:08 PM   #3
IamtheeApocalypse
Registered User
 
Join Date: Apr 2007
Posts: 4
Default

O.K. now it dosen't look like it shooting from the ship how do I attatch it to the ship but after it is shot it un attaches
IamtheeApocalypse is offline   Reply With Quote
Old 06-04-2007, 03:14 AM   #4
rrh
throw a trace() in there
 
Join Date: Dec 2006
Posts: 1,982
Default

Sorry I didn't reply sooner.

When you shoot, assign the laser's _x and _y values based on the ship's.
rrh is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with loading unloading clips and dynamic text sah302 ActionScript 1.0 (and below) 1 01-06-2006 05:19 PM
Shooting game problem Morret Gaming and Game Development 1 06-16-2005 04:11 AM
Flash Number type and c# float and decimal types. Convertion problem within Flash. maglez ActionScript 2.0 2 06-02-2005 05:14 PM
HEEELP!!! cant work out the answer to a problem case ActionScript 1.0 (and below) 1 07-29-2003 11:37 PM
global TextField Problem! Guru wonted mediaholic ActionScript 1.0 (and below) 3 07-20-2003 10:07 AM


All times are GMT. The time now is 03:28 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.