User Tag List

Results 1 to 7 of 7

Thread: Timing Gunfire?

  1. #1


    Join Date
    Mar 2011
    Location
    Michigan, USA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Timing Gunfire?

    Ok, so I want to learn how to time guns, so that it shoots out every 30 milliseconds or whatever, also. how can I make the bullet come out of the BARREL. not some default point of the gun?

  2. #2
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Timing Gunfire?

    1. flag on
    + every 33 = fire bullet

    2. the firing point is the action point (in the graphic editor). NOT the hot spot. Set the action point to the end of your barrel and fire away.

    3. read some tutorials and study some examples

  3. #3


    Join Date
    Mar 2011
    Location
    Michigan, USA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Timing Gunfire?

    but, how can I make it so that when I click it shoots?

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,729
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Re: Timing Gunfire?

    Maybe...Repeat while pressing left mouse button
    + every 33 = fire bullet

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,305
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)

    Re: Timing Gunfire?

    http://www.create-games.com/download.asp?id=8261

  6. #6


    Join Date
    Mar 2011
    Location
    Michigan, USA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Timing Gunfire?

    What is the flag number?

  7. #7
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    EE's Avatar
    Join Date
    Sep 2009
    Posts
    195
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Timing Gunfire?

    I would really suggest reading a few articles and studying examples posted here. You can learn so very much in a fast manner.

    There is no special flag that needs to be used for firing. A flag is like an on/off button, a true/false state, 1/0 etc..

    Every active object(and most others too) have a bunch of flags. You can use them in your code to determine if a state is true or false. Like a lamp switch for example:

    (Note that this is not real code except for the flag part)
    -Player flicks lamp switch: Toggle (Lamp)flag 0 (i.e change "on" to "off" and "off" to "on")

    -Lamp flag 0 is on: Make everything bright!

    -Lampflag 0 is off: Make everything dark!


    Or you can use a flag to determine if a button is hold down:

    Player presses button: (Active)Set flag 0 on

    Player releases button: (Active)Set flag 0 off


    Do you understand?

    For complex projects flags are invalueable for determining if a certain situation is true, like:

    Player has the sword of power and the goblin leader is dead and the sky has brokned while the maiden sings and the itemslot*64= Potions: Give Cakes
    //EE

Similar Threads

  1. lap timing
    By ptiseigneur in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th September 2012, 03:53 AM
  2. How does timing work?
    By MattEsch in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 1st July 2012, 01:30 PM
  3. Animation timing
    By Rik in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th July 2011, 06:04 PM
  4. Timing
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd January 2008, 11:09 AM
  5. Timing Issues
    By Shmoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th January 2007, 08:06 PM

Posting Permissions

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