User Tag List

Results 1 to 5 of 5

Thread: Shooting Delay

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shooting Delay

    I'm making a game where you can shoot (duh) but I want it to be realistic, so how do I delay sho0ting after the character has shot?

    Example of what I want: Soldier shoots, disable shooting for 5 seconds, after 5 seconds realow shooting.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting Delay

    At the start of the frame, set the timer 5 seconds. Upon shooting, set the timer to 0.

    In the "Shoot" event, add a condition testing if the timer is greater than 4 sec 99/100.

    Hope that helps.

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Mar 2008
    Location
    Singapore, Singapore
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting Delay

    Thanks for the help Jaffob! :grin:

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting Delay

    Here's how I would do it:

    Repeat while "shift" is pressed
    + Counter =< 0

    Then fire a bullet and set counter to 200

    If counter is greater than 0, subtract 1 from counter.


    This will let the player only shoot once every 200 mmf loops. I always, out of habit, check if the counter is less than or equal to 0, just incase some random weird bug makes the counter stoop to less than 0.

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Apr 2008
    Location
    California
    Posts
    357
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shooting Delay

    I'm not sure what version of MMF you use, but I believe that there is a restrict actions condition in the special object. Basically it won't get the key pressed, so it'll act as a delay. You can also calculate the delay every time it comes up. Like this Restrict Actions Rand(1000)*3+3000. (every second is 1000)

Similar Threads

  1. Get rid of the AutoHide delay?
    By Outcast in forum Fusion 2.5
    Replies: 0
    Last Post: 25th December 2013, 10:17 AM
  2. Shooting delay
    By Swiff in forum The Games Factory 2 - Technical Support
    Replies: 12
    Last Post: 20th July 2010, 04:04 PM
  3. Delay! help
    By scurvy in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 7th February 2010, 04:20 PM
  4. Help With 'Delay' - Is It Possible?
    By HRMNKRDN in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 20th July 2009, 09:22 PM
  5. sound delay
    By Larry in forum File Archive
    Replies: 1
    Last Post: 3rd January 2007, 10:56 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
  •