User Tag List

Results 1 to 10 of 10

Thread: Decrease "every" command

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Decrease "every" command

    So I have my event editor set to randomly pick an object every 2 seconds

    is there a way to make that 2 seconds gradually decrease?



    That's what I have set up
    ---------
    For the record, I have 5 green objects at the top of a screen, and they spawn blue objects that move to the bottom of the screen. I need the spawning rate of the blue objects to increase. I've been working on this for a week and haven't figured it out yet... I'm a newb... :/

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    You could replace the "Every 2 seconds" event with an Alterable Value, and always subtract 1 from that value.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Quote Originally Posted by stephen1980
    You could replace the "Every 2 seconds" event with an Alterable Value, and always subtract 1 from that value.

    stephen1980
    Yeah that's probably the best way to do it. Can use a counter if need be. You'll have to play around with values to time it right, as always subtract 1 obviously doesn't equal subtract 1 every second (it's faster). Does anybody know how the always add/sub 1 compares to the timer? I guess that would be related to the frame rate, but I don't have any numbers to go by.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    "Always" = Once every frame, I think?
    So if your FrameRate is set to 50, "Always" = 50 times every sec.

    But don't quote me. :grin:

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Quote Originally Posted by stephen1980
    You could replace the "Every 2 seconds" event with an Alterable Value, and always subtract 1 from that value.

    stephen1980
    How do you just put an alterable value in as a condition? O.o

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Use the "Compare Two General Values" under Special Conditions in the event editor.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Quote Originally Posted by stephen1980
    "Always" = Once every frame, I think?
    So if your FrameRate is set to 50, "Always" = 50 times every sec.

    But don't quote me. :grin:

    stephen1980
    Yeah that makes sense

  8. #8
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Quote Originally Posted by stephen1980
    Use the "Compare Two General Values" under Special Conditions in the event editor.
    ...
    Okay now I'm thoroughly confused.
    What do I enter in the "Compare Two General Values" box
    and how would I make that control the spawn rate of my object?

    Sorry, when I said I'm a newb, I reallly meant it... lol.

  9. #9
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Because when I click compare two general values, it asks me to do just that: compare two general values.
    Which two values should I be comparing here?
    Should I compare Alt Value B with Alt Value B (alt value A is already being used).

  10. #10
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Decrease "every" command

    Use the following events:

    +"Always"
    --> Add 1 to Global Value A

    +"Global Value A" = "100"
    +Randomly Pick One Of Your Objects
    --> Do Your Actions
    --> Set Global Value A to "0"

    To use the "Compare Two General Values" option, click on the top one and click on "Retrieve Data From An Object", choose Global Value A; on the bottom one type in 100, and click OK. This will compare if Global Value A = 100 (You may have to mess with this number - if your framerate is set at 50, this should work)

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Similar Threads

  1. "Cannot load joystick2.mfx" when "Compress the runtime" unchecked. Fine when checked.
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th September 2013, 09:44 PM
  2. "Rendertarget ping/pong" and "Pixel shaders" Can TGF2 do this?
    By CloudExSolider in forum The Games Factory 2 - Technical Support
    Replies: 13
    Last Post: 7th April 2013, 08:21 PM
  3. "Bug" For Saving and Loading Frame Positions AND "Timer Glitch"?
    By Zarpo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th March 2012, 12:40 PM
  4. Issues with "Clickteam Movement Controller" and "Runtime" Object
    By jimmyorpheus in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 29th November 2011, 07:10 AM
  5. How to send a "Close" Windows Kernel command?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th May 2011, 04:05 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
  •