User Tag List

Results 1 to 7 of 7

Thread: ammo count?

  1. #1
    No Products Registered

    Join Date
    Dec 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ammo count?

    im trying to make a game with this, but as i am only
    50% smart and 75% retarded (:3). i cant figure out how to limit a players "ammo", and how to replenish said ammo with a pick up. any help is greatly appreciated

    plz nothing to codezy i went searching for help through the rest of the forum and got a bit of a headache lol

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ammo count?

    set a counter to how much ammo you want to give the player.

    in your firing event (when the player shoots), also add a condition that the counter should be greater than 0.

    in the same firing event subtract 1 from the ammo counter.

    to replenish the ammo just set the ammo counter to whatever amount you want when the player collides with the ammo pick up, and destroy the pickup.

  3. #3
    No Products Registered

    Join Date
    Dec 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ammo count?

    thank you,
    but im still having problems :<
    you helped me by making me look for the counter and telling me what it does ( i was trying to use an alterable value b4. still have no clue what that is ) i understand and can do most of it but i cant figure out how add the condition that the number should be greater than 0?

    i shall keep looking

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ammo count?

    if you insert a new condition you can then click on the counter object (usually looks like 123 in a bar thingy) then choose the last option which is "compare the counter to a value"

    then you can simply change the drop down ("choose comparison method") to "Greater" and leave the value as 0.

    an alterable value is just an internal counter for that specific object, so you don't have a million counters in your frame.

  5. #5
    No Products Registered

    Join Date
    Dec 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ammo count?

    O.O

    ty so much, i had no idea i could add conditions in the same box

  6. #6
    Clicker Fusion 2.5Android Export ModuleSWF Export ModuleXNA Export Module
    jbrown2177's Avatar
    Join Date
    Dec 2011
    Location
    VA
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by RhysD View Post
    set a counter to how much ammo you want to give the player.

    in your firing event (when the player shoots), also add a condition that the counter should be greater than 0.

    in the same firing event subtract 1 from the ammo counter.

    to replenish the ammo just set the ammo counter to whatever amount you want when the player collides with the ammo pick up, and destroy the pickup.
    I know this is an old post, but why do I need the counter to be greater than 0?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Replied to your PM, but it needs to be greater than zero to prevent the player from firing if he has zero ammo left.

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. Newgrounds count vs. mochi count
    By Tuna in forum SWF/Flash Export Module Version 2.0
    Replies: 9
    Last Post: 20th September 2010, 08:37 PM
  3. 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
  4. Ammo Stack Example for JohnJuba
    By Chaos in forum File Archive
    Replies: 0
    Last Post: 15th March 2010, 06:47 AM
  5. 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
  •