User Tag List

Results 1 to 8 of 8

Thread: Holding Mouse down & Shooting more than once

  1. #1
    Clicker Fusion 2.5 (Steam)
    Mazerwulf's Avatar
    Join Date
    Dec 2014
    Posts
    34
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Holding Mouse down & Shooting more than once

    Hello everyone. I have two quick questions.

    I am doing a top-down shooter ala Xevious and I am trying to figure out two things.

    The first is: How would I be able to hold down the mouse button to keep firing?

    The second: How would I increase how many bullets fire with each click? Basically what I mean is if I do "Launch object", it lets me fire 1 bullet but I need to wait until the bullet is either destroyed or is off screen before I can shoot again but I would like to get a stream of bullets (not machine gun status but at least bursts). How would I go about this?

  2. #2
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I did a "Repeat while left mouse-key is pressed"
    "+Number of "bullets" <10" ----> Player Launch an object

    for me, a fast click on the mouse made the Active object fire one bullet...while clicking it longer it fired 2-10 bullets at once. Maybe not exactly what you want but maybe a start

  3. #3
    Clicker Fusion 2.5 (Steam)
    Mazerwulf's Avatar
    Join Date
    Dec 2014
    Posts
    34
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I will give that a shot. I appreciate the input. ^_^ I'll post back once I get a result

  4. #4
    Clicker Fusion 2.5 (Steam)
    Mazerwulf's Avatar
    Join Date
    Dec 2014
    Posts
    34
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Klownzilla View Post
    I did a "Repeat while left mouse-key is pressed"
    "+Number of "bullets" <10" ----> Player Launch an object

    for me, a fast click on the mouse made the Active object fire one bullet...while clicking it longer it fired 2-10 bullets at once. Maybe not exactly what you want but maybe a start
    Alright, I did the Repeat part and that seemed to give me autofire as long as the mouse is held - that's awesome.

    And I figured out the way to limit the bullets. Super awesome.

    However the bullets just shoot all at once. How could I do it where I can spread them out a bit?

  5. #5
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Maybe try this?
    "Repeat while left mouse-key is pressed"
    "+Number of "bullets" <10"
    "Restrict actions for 15/100" ----> Launch object

    Is that's the effect you're after?

  6. #6
    Clicker Fusion 2.5 (Steam)
    Mazerwulf's Avatar
    Join Date
    Dec 2014
    Posts
    34
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Let me give that a shot

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator Pro
    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
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    You could also have a rate of fire stat for your weapons.

    When the mouse button is held, Restrict actions for ?/100: subtract 1 from cooldown

    when cooldown <= 0 Launch object and set cooldown to firerate stat.

  8. #8
    Clicker Fusion 2.5
    AM_Games's Avatar
    Join Date
    Oct 2017
    Location
    40 miles west of Chicago, IL.
    Posts
    71
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    OMG...this post is 3 years old and it totally helped me!! TY!!!

Similar Threads

  1. Shooting something in the direction of the mouse?
    By Root in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st May 2009, 10:12 PM
  2. Animation not playing when holding a mouse button
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 10th March 2009, 05:56 PM
  3. Help With Mouse Clicking In Game and shooting
    By IIMikII in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 24th October 2008, 05:41 PM
  4. user holding down mouse button on object
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 14
    Last Post: 7th May 2007, 11:04 AM
  5. Shooting and tracking with a mouse
    By zolointo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd July 2006, 01:30 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
  •