My bullets dont work in my game .

I have a ship mc on the stage called "hero" and a bullet mc
off the stage called "bullet". When you press space, the function
below called fireBullets() is triggered, but its not working how I
want it to, of course. When you shoot a new bullet, there should be
another one following behind the first, but instead the bullet
already shot disappears and a new one appears in front of the ship.
Maybe Im just not using the right strategy, but this is really
aggravating me. Any help appreciated!
var i;
function fireBullets() {
if (i >= 2) {
//this should happen AFTER the else statement
_root[newname].duplicateMovieClip(newname);
i++;
} else {
var newname = "bullet"+i;
bullet.duplicateMovieClip(newname);
i++;
_root[newname]._x = hero._x;
_root[newname]._y = hero._y-38;
var newname = "bullet"+i;

Hi there,
To get the next highest depth use the code:
var nextDepth = this.getNextHighestDepth();
So then you can do this:
_root[newname].duplicateMovieClip(newname,nextDepth);
Greetings Guido
Creation site internet |
Radins
|
Jeux Concours |
Programme TV

Similar Messages

  • Arrow keys dont work on flash games

    Hi, anyone had this problem? The arrow keys dont work when I
    play flash games. Have downloaded latest version of flash (multiple
    times) and still the same problem. I load up a flash game, then can
    only use the mouse to play. Arrow keys just dont respond when used.
    Arrow keys work fine on other programs, just flash is a
    problem
    Really hope someone has had this before and knows what to do.
    Thanks for any replies.

    I had the same problem and was looking around on the net for
    help. I found a post that said to try using the numbered keypad
    instead, as in 8 is up, 2 is down, 4 is left and 6 is right. It
    worked for me so hopefully this will help you as well. :)

  • The centerbutton dont work right cantplay games

    the center buttton does not work cant play games what can i do ipod nano 5th gen

    There are two ways:
    - On the iPod, go to Settings>General>accessibility and turn Voice Over off.
    - If you can't get there, connect the iPod to its syncing computer.  In iTunes go to the Summary pane for the iPod under Devices. Click on Configure Universal Access and turn Voice Over off.

  • CMSS-3D "Estereo Surround" dont work in video games

    Hello, excuse me for mi english because im from Argentina. I have a Sound Blaster X-fi surround 5.1 USB and the option "CMSS-3D Estereo Surround" only works in the music of the Windows Media Player. In video games or youtube videos this option doesnt work. I have stereo sound only in music, how can i do?. Really thanks!.

    Someone said this works: http://www.svp-team.com/wiki/SVPtube

  • Flash games, (perfect poker, bubble island etc) dont work on facebook after Firefox 4 install?

    Flash games, (ie perfect poker, bubble island etc) on facebook dont work after Firfox 4 install. i have all latest updates to adobe etc.

    I would like to remove facebook, whatsapp, coming soon, mcafee, uefa, wisepilot, news republic and that xperia power management tool.
    Those 8 app are not useful and waste my space on the phone. I tried to uninstall them, everytime i restart the phone they install again and again, it's a pain!!
    The wifi bug is not solved, the led notification is not solved, the light sensor is not solved and we have now no HD video.
    What the hell are you doing there??????????????????????????????????????????
    Last minute update: After a lot of tries and restart finally it doesn't install anymore mcafee, uefa (I had 2 uefa application automatically installed!!), wisepilot, news republic, comingsoon.
    I still can't get rid of that damn bloatware facebook (Facebook app, Calendar sync per facebook, Facebook extension, FBiX Music Likes,FBiX Post Viewer, FBiX Proxy, FBiX Setup, Friends Games and Applications, Friend Music and Videos) and Whatsapp (I dont use it and it waste 4MB). To jo_xperia: how did you uninstall facebook?

  • I purchase full version of this game (triple star 2000-developer Antonio Lattanzio) but dont work full.What happent,i paid the app??PLS help

    i purchase full version of this game (triple star 2000-developer Antonio Lattanzio) but dont work full.What happent,i paid the app??PLS help

    Hi Tatae55,
    I think that your purchase failed for some connectivity reason but it will be restored as soon as you try to 'Restore' the purchase or 'Re-Buy' the Non-consumable product.
    Don't worry, you will not be charged again if your purchase was successfull before.
    Kind Regards,
    Antonio Lattanzio.

  • After updating to 8.3 so many apps dont work properly. Any body else got this?

    After updating to 8.3 so many apps dont work properly. Any body else got this?

    This is truthfully a WAG but here are some standard repair procedures:
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore (or it doesn't help), go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without being charged again.  Also, read this.

  • Addons dont work with ff36 and you didnt warn me

    i use addons to play games such as scriptish and lucifers mods they now dont work since you updated to ff36 and i thought you were supposed to warn me if that happens

    Are either listed as being disabled in the Add-ons Manager tab?
    If so, see if you can enable them.
    If you can't enable either of them, maybe they weren't reported as not being compatible with Firefox 36 - ??
    Scriptish hasn't been updated since June 14, 2013 - https://addons.mozilla.org/en-US/firefox/addon/scriptish/ (see the Version Information all the way near the bottom) - and it may need to be updated, Or maybe that project has ended.
    The best I can offer is to recommend trying to contact the developer - using the Support E-mail button in the right-column of that AMO page, and see if you get a response.
    As far as "lucifers mods" don't know what that is, but if it isn't a Firefox extension all by itself there's no way Mozilla would know anything about it.

  • Iphone dont work

    my iphone dont work what to do ?
    i bought my iphone 5s before 8 months.
    i went to idigital store that said me i havent 1 warrenty there .
    they said me to go orange commpany in israel and they say that my iphone
    wont prepare there
    i dont know what to do
    i had all my money in this iphone and i need it immedditly.
    i need your helpful how i cheak my iphone and prepare it /
    thanks you

    snans wrote:
    my iphone dont work what to do ? - what doesn't work - maybe add some details
    i bought my iphone 5s before 8 months. - where did you buy this phone
    i went to idigital store that said me i havent 1 warrenty there . not international warranty only in the country the phone was purchased.
    they said me to go orange commpany in israel and they say that my iphone
    wont prepare there
    i dont know what to do
    i had all my money in this iphone and i need it immedditly.
    i need your helpful how i cheak my iphone and prepare it /
    thanks you

  • Speakers dont work

    My speakers dont work , headphone jacks do

    Try reset SMC
    see
    http://support.apple.com/kb/ht3964
    and Pram
    http://support.apple.com/kb/ht1379

  • Facetime dont work

    my facetime dont work whith lion

    Hello, friends.
    In order to run FaceTime on Lion, solving the server registration issue, you must create a new password key in Keychain, with the following parameters:
    Name: com.apple.facetime: registrationV1
    Account: registrationV1
    Where: com.apple.facetime
    Then, restart your Mac.
    Best regards!

  • Dont work dimms 2- on K8N Diamond

    Hi, i have problem with DIMM 2-4, if i put any memrory ram in the DIMMs 2 or 4, the BIOS give this error (using the led):
    Quote
    Testing onboard memory size. The D-LED will hang if the memory module is damaged or not insalled properly
    But if i put ram in the DIMMs 1-3, work without any problem, also work if i put memory in the dimms 1-2-3-4, but only recognize the ram who is in the dimms 1-3.
    I try to reset de bios and upgrade it to the last version, but dont work. Please anyone help me
    pd:sry for my english :(

    Quote from: finord on 13-February-07, 02:14:15
    I try to install 2x256mb(at the moment i have 2x512 kingston value ram, in the dimm 1 and 3), i use a signle mode, but the problem is the dimms 2-4, if i put only 1 memory ran (kinsgton value ram) in the dimm 2 o 4, dont work
    that is normal, when using 2 memory sticks always put them into 1st DIMM slots(close to CPU socket.) about 4 sticks usage and 2 of them are not detected, can be due your mixing memory (ranks & banks, and CPU mem.controller cannot handle it) what CPU core you got btw? im still not conviced its DIMM slots failure. also before installing all 4 memory sticks setup from BIOS command rate to 2T, and apply memory index 166. also you have insterting all 4 stick in wrong direction. put in DIMM1 & DIMM2 Kingston sticks(instead DIMM1 & DIMM3) and 2 other once 2x256 into DIMM3 & DIMM4 (instead DIMM2 & DIMM4)
    re-test.

  • Dont work dropdown list in Variation Label Menu on one variation site

    Hi, guys! I have trouble with Variation Label Menu. I have site with four variation language and i made Variation Label Menu using code on my master page 
    <div style="float:left; margin:6px; z-index:9999">
    <PublishingWebControls:VariationsLabelEcbMenu id="variationLabelMenu" DataSourceID="LabelMenuDataSource" DisplayText="" IsCallbackMode="true" runat="server" />
    <PublishingWebControls:VariationDataSource id="LabelMenuDataSource" LabelMenuConfiguration="1" Filter="" runat="server"/>
    </div>
    On three variation site Variation Label Menu work fine on UA, FR, EN
    But on one site RU (this site is source for another) Variation Label Menu dont work :((
    I will glad to any ideas for fix my problem.
    Aleksandr Shramko

    But that should have changed the logic of the navigation:
    The VariationDataSource control supports three different operation modes using the LabelMenuConfiguration attribute:
    Link to Peers: this is the default and most common operation mode. In this mode, the data source returns links to peer pages of the current page. 
    LabelMenuConfiguration="1"
    Link to Parent: using this operation mode the data source returns links to the peers of the parent site. That link will not point to the peer page but to the peer site of the current site. 
    LabelMenuConfiguration="2"
    Link to Top Site: using this operation mode the data source returns links to the top sites of peer labels.
    LabelMenuConfiguration="3"
    http://blogs.technet.com/b/stefan_gossner/archive/2011/11/29/sharepoint-variations-the-complete-guide-part-12-customization.aspx

  • Dont work adds of translation to me for example: quick translation, they is installed but not traduce any thing all the adds work less translations what can i do ?

    please i love mozilla and there is times what i want to translate any text from english to spanish but nothing i tve tried all the adds to translate but no load they is installed in my browser but simply dont work. tell me what can i do ?

    Everyone reading your posts here is just another MacBook Pro user. We're all volunteers, not Apple employees. No one here can speak for Apple.
    In my personal opinion, buying Apple products in a country where Apple has no stores and no corporate presence is a risk that the buyer takes knowingly. I don't think it's a wise risk, and I don't recommend that anyone take it. A small percentage of the products sold anywhere are going to have problems, and it makes more sense to buy an inferior product that can at least be serviced locally than to buy a superior product that may have to be sent thousands of miles for repair if anything ever goes wrong with it.

  • Dont work driver on Scanner ScanJet 300 on winows 7

    Please, create new drivers for Scanner ScanJet 300 on Windows 7 platform. I have this divace. Dont work it on Windows 7. Windows 7 and drivers of ScanJet 300 scanner are not complianted.

    Hi @Per-Morten 
    I suspect your question would be better answered in the HP Enterprise Business Community, as your HP Printer is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging. When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP Scanjet 5400c Scanner Drivers page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
      - In support of Movember
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

Maybe you are looking for

  • ITunes Installation Error Message?

    I recently had to install an update for iTunes. After the update was installed, I was promted by an error message that "iTunes was not installed correctly", and that I needed to reinstall iTunes. Once I completed the process of uninstalling iTunes, I

  • How can I store messages sent automatically in the inbox?

    I am using Thunderbird and want to Switch to Mac Mail. One feature I cannot do without it having my own sent messages delivered in my inbox rather than in the sent box. I cannot find such an option in Mac Mail.

  • Can MySQL triggers or storedprocedures(callbacks) call java code?

    I have to store the DB tables in the server side(i.e cache it) If someone updates the Data Base , The Data updates must be reflected in the cache in the server side. so how callbacks form the DB can be make to a java code in the server side. i am usi

  • Process for Renewing Certificates/Push Notifications

    Can someone please help me understand the process for renewing my Apple certs & push notification files? More specifically: 1. Will Apple notify me when a cert needs to be renewed? Can I do this before it becomes due? 2. What happens if a cert expire

  • Acrobat 10.1.4 on mac freezes during installation

    Acrobat update downloaded and started to install on my Mac but froze during installation and will not allow me to do anything.  I can not quit out of the installation or restart my computer.  Any suggestions???