creation of line of sight for a game

I am a student and very new to Flash, I create a shooting game game for my class

I made a set of crosshairs and I put my enemies to disappear when I click on them and everything works fine but I noticed that my line of sight will not line up to where I'm clicking on, so I'm going in my sights that are a clip and move the reticle so the little + sign is well aligned in the middle of the line of fire , now when I play the game nothing happens when I click on enemies unless I put the layer below the layer of enemies reticle

I hope that I wrote all this correctly and if not, I apologize for my ignorance, any help would be greatly appreciated

Adam

You may need to set the focus property mouseEnabled false...

crosshairs.mouseEnabled = false;

Tags: Adobe Animate

Similar Questions

  • How to create a 'command-line interface' for a game?

    Hey people,

    For a game that I have to make a similar command-line interface where the user has at least 3 options to respond with, anyone know how to on this subject?

    I hope someone here can help me out!

    Kind regards

    Angela

    I don't know what part of it, you are having trouble with. Imagine for a moment that instead of asking for your end user typing something into a text input field and monitor what they type (maybe), who instead of you provide 3 buttons on your stage. Answering a press of button in this scenario as respondent to typed user input - your film something is based on the interaction of the user. Enter the user entered text scenario, a text or field sprite can detect the key ENTER and examine the string that the user entered, something like:

    on keyDown me
      if _key.keyCode = 36 then
        stopEvent
        sText = sprite(me.spriteNum).member.text
        case sText of
          "hack": -- do whatever you need to here
          "research":
          "wait":
          otherwise:
        end case
      else
        pass
      end if
    end
    
  • Implementation of Physx for DirectX game

    I was wondering if there was a way to implement Physx bookstores for my game using DirectX. It would be useful to better physical and graphic.

    You do not implement PhysX libraries in games. They use it, or not.

    While the games use cpu physics based for some time (Half Life 2, 'ragdoll' physical and)
    is an example) PhysX is really just an advanced physical management system, but there is not a lot of games that make good use of PhysX - yet.
    Apparently, Borderlands 2 had a lot of attention with its PhysX. Batman AA and AC are
    Another example of games that uses PhysX.
    The difference between the normal physical and PhysX up to this point has been quite low.

    I'm not up on top of the latest about ATI as I am using Nvidia for a long time, but the PhysX
    treatment is related to the Nvidia Cuda technology.
    Some say that you can use your cpu (if it is powerful enough) to PhysX, but one may wonder
    If they are indeed PhysX or normal physical based cpu.

    NVIDIA bought the rights for PhysX of Agea and they had exclusive rights to it.
    Yet once again, I'm not on later, but people have been able to use a 'hybrid' system (installing an Nvidia card in a machine with an ATI/AMD card) with driver hacks earlier, but the driver Nvidia changes which stopped.  .

    PhysX is more effective when you use two Nvidia cards with a dedicated PhysX card.
    I've not bothered with this Setup (my motherboard that the machine was also only one PCI-e slot, so I couldn't experiment with it anyway), but a single Nvidia card will always be PhysX.
    Batman AC PhysX is still very effective with my GTX560ti.

    You should be able to find more information on the creation of a dedicated card for PhysX if you do a search.

  • Deactivation of apps for online games

    I recently bought a new Dell laptop with Windows 8 on it. I appreciate the operating system and it is easy to navigate with my touch screen. However, I recently downloaded some online games and a few questions.

    The internet home is acceptable, but certainly not fast. For this reason, I want to be able to use all of my network speed for the game I want to play. I'm afraid I can't do that because of applications that require an internet connection. I don't want apps to take any network speed. Any player who suffered the wrath of the gal network during a match in line can understand my frustration.
    Is there a way to temporarily disable applications while I want to play games, and then switch them on when I'm done? I know that some antivirus programs have the opportunity to switch to 'silent' mode or 'game mode', in which they lead no background scan to not interfere with the speed of the computer. I didn't know if Windows 8 has a similar feature.
    I appreciate all help.
    Thank you
    Trent

    Yes, indeed, just the apps.  It will suspend any background downloads, updates, tiles alive and a few other things.  But any application that you can always use your entire network connection.

  • Pencil stuck on line of sight tool

    Suddenly, I have a problem with the tools. I want to paint with the pencil in different dimensions of the task. Instead of a task, I get a cross even when I choose att large spot size.

    Even to other tools, as for example the pipette has now got another marker. Can you please help, thank you

    Hello

    Do you by chance have the caps lock on?

    (the caps lock on will show sliders as accurate/line of sight)

  • Hi I buy chips 4900 rupees today. For the game teen patti app money on my account but not received unlimited chips in play please help cut me as soon as POSSIBLE.  Thank you and best regards I am Ashu Khatri

    Hi I buy chips 4900 rupees today. For the game teen patti app unlimited

    The cut on my account but not received money chips game please help me as soon as POSSIBLE.

    Thanks and greetings
    Ashu Khatri

    Contact the manufacturer of the App or iTunes and ask them about it.

  • A good laptop for video game development?

    I'm new to development and am looking for a new laptop that would work well for development. I know one a laptop is not the best option, but I need to be mobile because I tend to move around a lot. I'm looking for something under $ 1500. I need something that works well for making games indie and the latest software of the unit running. I would greatly appreciate all advice!

    Apple - MacBook pro 13 "16 GB Ram upgrade

    http://www.Apple.com/shop/buy-Mac/MacBook-Pro?product=MF839LL/A & step = config #.

    its what I use and it works very well for steam games, etc...

    Hope this helps, good luck to you.

  • Subscriber not Apple music, continue to pay for iTunes game?

    I am not subscribed to Apple music and I was wondering if I still pay for iTunes game? If so, how can I unsubscribe because it is no longer an iTunes app that I can unsubscribe?

    Hi globetrotterdk

    Music to Apple and iTunes game are separate services.

    You can unsubscribe from iTunes game directly from your iPad:

    Select settings > iTunes and App Store.

    Tap on your Apple ID.

    Click on View Apple ID. If you are prompted, enter your password.

    Highlight the iTunes in the cloud section.

    Turn off iTunes game renewal.

    Subscribe to iTunes game - Apple Support

  • Pavilion 15-ab063cl: Amd Radeon r6 is it appropriate for the game (it's built)

    I want to buy Pavilion 15-ab063cl and he have gpu amd Radeon r6. I want to know if it is integrated or not and if it is appropriate for the game?

    Thanks for help

    It's graphic APU which meands it goes right into the processor. It is always integrated and not dedicated video and not intended for serious games. If you want to run really demanding games on a laptop you need a portable game special purpose-built and those experiencing a few dollars. HP makes a laptop 'game' that runs around $1500 and it is at best a thing of mid range lower, but still much better than what you are asking about. True gaming laptops start at $2000. The laptop you are asking on maybe run some games to lower settings very well. Integrated video is going is pretty good, but which is like saying you are high 'little person' of the world-not much.

  • Love at first sight for usb cable will work for migration?

    Love at first sight for usb cable will work for migration?

    Migration from what to what?

  • Processor upgrade for the games.

    I have a Hp envy with a Core i7-4510u Cpu and a GeForce GTX 850 M.

    It works fairly well for the games, but I was wondering if it would be better if I swapped the Cpu for something different, and what models I could exchange it for.

    Hello

    What is your computer? It's a laptop? If so, save the money to buy the new machine because the graphics card for a normal laptop upgrade is impossible bunch of costs, more than buying a new, better machine.

    Kind regards.

  • request for hp games

    Hello

    Pllease could someone kindly help me with the following queries. I can not open HP games via the desktop icon, I have to go to start menu and click on games and access to games, there are some that I can't open. I searched the help section, and it seems that only some games is available in windows 7 premium. Could you let me know how I could get these games. Thank you very much for any assistance, I have recently bought my computer and cannot find the answersanywhere

    Thank you

    Hello

    I remember, HP games are designed by WildTangent, then it might be interesting to try to download and install versions "try for free" games that you can not load now - the site is on the link below.

    WildTangent Games

    Kind regards

    DP - K

  • Best Windows 7 for school / game?

    Hey, I'll get windows 7 and I wonder which version would be the best for the games work / school?

    Thank you.

    As long as you were running Home Premium or until you will be fine.  The underlying operating system is the same.

    If you don't want things like the ability to connect to your remote machine, network backup, impression taking charge location or the ability to join a domain go for professional.

    Paul Smith - MVP for Windows desktop experience... I crawled off NNTP - for now. Detachment Aldershot, United Kingdom. On the internet at windowsresource.net and dasmirnov.net. Please post back to let us know what works and what does not. :-)

  • Where is a good place to get the set of patches for old games

    Hello

    I've been looking for a good place to get the fixes for older games pc game.  I know that the best place is the site of publishers, but sometimes they stop making them available (e.g. FEAR).  I looked at a few well known places to get them, but they all require way too much personal information.  I don't feel comfortable giving my life away just to get a pc game patch.  It seems just a little scary to me for them to ask a lot of personal information.

    The games that I need patches for are Doom 3, Quake 4, AFRAID and prey.
    If you know of a good site, please report it.

    Wouldn't be nice if Microsoft made a website for it?  Then I could just connect you and get what I need lol.
    Thank you
    Jebidia

    Hello Jebidia,

    Thank you for using the Microsoft Windows Vista Forums.

    Yes, I understand your point of wanting to get your money to buy a game.  I recommend you always go to the site of the game manufactures video you must first update.  There are so many third party sites for patches, you want to be sure that it is a trustworthy site.  Please let me know if you have other questions/concerns.

    Of course, you can go to the link below for updates on games made by Microsoft/Windows:
    http://www.Microsoft.com/downloads/en/resultsForCategory.aspx?displaylang=en&CategoryID=1&sType=n_dc engineer in Support of James Microsoft answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Error - Rome: Total War did not find DirectX 9, which is required for the game to run. Please reinstall DirectX.

    Original title: problems running Vista on Bootcamp DirectX.

    I have browsed the web for the last little while and cannot find any solution.

    I am trying to run Rome Total War on Vista, on bootcamp on my iMac 27 ". However, every time I start the game is active an error message saying "Rome: Total War has not find DirectX 9, which is required for the game to run." Please reinstall DirectX.

    I've been searching the net and have used some DirectX downloads (9) on several trusted sites, but the error message always everytime that I try to run the game.

    I have 'Run' 'dxdiag' and on the 'system' tab is says I have DirectX 11, section 'Information System '.

    I do not know where to go from here, any help would be greatly appreciated

    Have you installed this installation?

Maybe you are looking for