User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: Music Issue/Other Issues

  1. #11
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Hmm... not sure what I'm doing wrong here.

    On my global events I have it set up like this:

    1. Start of Frame

    - Set internal flag 4 of Object1 on


    2. Upon pressing "N"

    - Toggle internal flag 4 of Object1
    - Set volume of channel #4 to 0


    3. Upon pressing "N"
    + Object1: internal flag 4 is off

    -Set volume of channel #4 to 100
    -Toggle internal flag 4


    I have my sound effects all playing on channel #4. My sounds play at the start, turn off when I press "N", but they do not come back on when I press "N" again.


    Don't forget to check for when the flag gets turned off and to stop any music/sounds playing.

    Flag 1 of Object1 is off
    +Only one action on event loop
    I have a feeling this is what I'm missing, but I'm not quite sure where to put this in.

    Thanks.

    ~Squibs

  2. #12
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)
    BackStaged's Avatar
    Join Date
    Aug 2010
    Location
    France
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Why wrote 2 conditions "upon pressing "N"" ?

  3. #13
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    I have two, because I thought it would work like that. But now that I've messed with it more I've noticed it does nothing different, rather I have it as one or two separate conditions.

    I'm trying to say Upon pressing "N" while flag 4 is on, do this.

    And upon press "N" while flag 4 is off, do this.

    I'm still confused on the matter.

  4. #14
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    You've forgotten that once the flag is changed, the next event will see that. You simply need to do "Upon Pressing N: Toggle Flag"
    Working as fast as I can on Fusion 3

  5. #15
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    So, should I set it up like this then?



    1. Start of Frame

    - Set internal flag 4 of Object1 on


    2. Upon pressing "N"

    - Toggle internal flag 4 of Object1


    3. Object1: internal flag 4 is off

    -Set volume of channel #4 to 0


    4. Object1: internal flag 4 is on

    -Set volume of channel #4 to 100



    Nevermind... that didn't work.

  6. #16
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Is the sound playing on channel 4? I think you wanted Stop All Samples.
    Working as fast as I can on Fusion 3

  7. #17
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Yes, the sound plays on channel 4, and it stops when I press, "N" but the sound does not come back when I press "N" again. I don't really want to stop all samples I would just like to mute them, then be able to unmute them.

  8. #18
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Well, there's nothing wrong with your code.
    Working as fast as I can on Fusion 3

  9. #19
    No Products Registered

    Join Date
    Oct 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Quote Originally Posted by Squibs
    1. Start of Frame

    - Set internal flag 4 of Object1 on


    2. Upon pressing "N"

    - Toggle internal flag 4 of Object1


    3. Object1: internal flag 4 is off

    -Set volume of channel #4 to 0


    4. Object1: internal flag 4 is on

    -Set volume of channel #4 to 100
    After continuing on with my game for a while, I finally tried moving this out of my global events. Into each frames events. Turns out that was the problem. Thanks everyone for all the help.

    ~Squibs

  10. #20
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Music Issue/Other Issues

    Ahh yes, you would need that Object1 to be global and in every frame.
    Working as fast as I can on Fusion 3

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. [PAID] Seamless Looping OGG/Music Player Extension (to play music with loop points)
    By DinnerSonic in forum Paid Design & Development Requests
    Replies: 0
    Last Post: 6th October 2013, 07:27 PM
  2. Modal and Music issue.
    By GameDragon in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 13th December 2009, 03:21 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
  •