User Tag List

Results 1 to 3 of 3

Thread: How do I limit the ammo players have?

  1. #1
    No Products Registered

    Join Date
    Oct 2010
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I limit the ammo players have?

    I am trying to make a game where the player has to shoot robots and find their way through a maze full of traps. I want to make it where they have limited ammo.
    Example: Their's a counter on the bottom right of the screen that subtracts by one every time they shoot. Once it reaches zero they can't shoot anymore until they find more ammo.
    How can I do that?

  2. #2
    Clicker Fusion 2.5SWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    Indiana, USA
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I limit the ammo players have?

    Make a counter at the bottom right of the screen, and set it to be greater then 0(unless they start with no ammo).

    Then in your shooting event, do the following:

    Player pushes "shoot"
    +Counter is > 0
    -Shoot bullet, subtract 1 from the counter.

    Now the shoot event will only work if the counter is greater then 0.

    To give them more ammo from a pickup, when they collide with the pickup just add the ammo to the counter.

    If you are having trouble making the above event in the editor, right click your event for "on pressing key", and select "Insert". That's how you can add multiple conditions to a single event.

  3. #3
    No Products Registered

    Join Date
    Oct 2010
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I limit the ammo players have?

    :grin: Thank you so much! It works great!

Similar Threads

  1. Ammo Bar with customized graphics
    By Matriax in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 1st December 2015, 04:22 PM
  2. Need help: 'Ammo' from selected source(s)
    By JohnJuba in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 16th March 2010, 04:05 AM
  3. Ammo Stack Example for JohnJuba
    By Chaos in forum File Archive
    Replies: 0
    Last Post: 15th March 2010, 06:47 AM
  4. Ammo?
    By delta9857 in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 4th December 2009, 01:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •