User Tag List

Results 1 to 3 of 3

Thread: Weapon switching

  1. #1
    Clicker Fusion 2.5

    Join Date
    Nov 2015
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weapon switching

    I was wondering if anyone had a good example on switching weapons. Basically I want to have about 4 weapons I can toggle through. I tried to follow a written example somewhere in the forums, but it was somewhat difficult to follow, probably due to me being so new to the platform. Thank you.

  2. #2
    Clicker Fusion 2.5

    Join Date
    Nov 2015
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sorry, it looks like I posted this in the wrong spot.

    Edit: thread has been moved

  3. #3
    No Products Registered

    Join Date
    Dec 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could do this through an Alterable Value on the game character. Let's call that value "Weapon ID".
    Then, assign a number between 0-3 to each of your weapons. You will use these.
    On every weapon command, insert the condition: "Weapon ID" = "<assigned number>"
    Then, add the following commands:

    An example of how to prevent weapons from firing when they're not selected. If the "Weapon ID" is not the same as the number you've assigned to the weapon, it won't launch the object.
    C) User presses SPACE
    C) "Weapon ID" = "<assigned number>"
    A) Launch object

    To pick another weapon, you could use the scroll wheel, or a key. Adding 1 to the "Weapon ID" value causes the next weapon to be selected.
    C) On mouse wheel up
    A) Add 1 to "Weapon ID"

    The reversed condition would trigger a reversed action; select previous weapon.
    C) On mouse wheel down
    A) Subtract 1 from "Weapon ID"

    To prevent the "Weapon ID" value from going higher/lower than the first/last weapon's assigned number, this command. It allows the player to select the first weapon by scrolling to "Next" when the last weapon has been selected.
    C) "Weapon" > 3
    A) Set "Weapon" to 0

    And vice versa.
    C) "Weapon" < 0
    A) Set "Weapon" to 3

    Hope this helps! If you have questions, hit me up.

    EDIT: You could visualize this by changing the animation(s) of your character/a button displaying your weapon by the same logic as the first command. (condition: Frame/animation number = "<assigned number>")

Similar Threads

  1. Replies: 5
    Last Post: 2nd December 2015, 10:50 AM
  2. Weapon use tutorial or example?
    By gamer123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th June 2012, 10:38 AM
  3. A Sling weapon
    By Tiger in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 1st May 2012, 11:44 AM
  4. Character Weapon Switching on the fly? {With PMO}
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 16th April 2012, 02:30 AM
  5. A few weapon problems!
    By RealGameMaker in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 20th August 2009, 06:45 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
  •