User Tag List

Results 1 to 5 of 5

Thread: SFX loop

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    SFX loop

    g'day guys,

    so I have a game where if you hold down a button it initiates your spaceships jet engine. and so i want a sound effect of the engine to play as long as the key is held down... normally this would be no problem but when I export it to flash it dramatically slows down, from 50 to about 25-30 fps...

    the event is simply:

    +every 00'00'10 seconds
    repeat while spacebar pressed

    *Play Sample Jet Engine

    the sample is about half a second long and only 8kb... it works fine as a standard .exe app, it only goes slow when i test the SWF. there is not much else going on in the game, when i remove these events, the frame rate returns to normal...

    am I missing something? is there a way i can loop this sound effect without slowing down the game?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SFX loop

    Avoid the Timer, maybe this helps:
    - repeat while spacebar pressed
    - Sample Jet engine is not playing
    ---> play sample

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    England
    Posts
    820
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SFX loop

    How about repeating the sample infinitely when the key is first pressed and then checking for the key no longer being pressed and stopping that specific sample?

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: SFX loop

    @steven
    works perfectly.. argh I should have played around with it more before asking the question cheers!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    England
    Posts
    820
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SFX loop

    No probs

Similar Threads

  1. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  2. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  3. Fast loop within fast loop - platform game
    By Safe in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 16th April 2010, 07:38 AM
  4. Loop AVI?
    By ducknet in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th October 2009, 04:23 PM
  5. Start loop "loop" 'Alterable Value A' times
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th May 2009, 07:26 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
  •