Music non stop even if i die in the game?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • hello every body!


    how can i play the music non stop for every 5 frames
    i want every 5 frames ( 5 levels) the same music without pause or repeat ,
    even if i die in the game i want that the music dont stop or dont repeat ( for every 5 frames )


    thank you

  • Well, first you have to enable the "Play sounds over frames" option in the application properties (under Runtime Options). Then, use the "Play sample" or "Play sample on a specific channel" action to play the sound at the start of the first of the five frames. It's a better idea to use the sample actions than the music actions for all sound because you get more control over the audio if you use samples.

    "Don't stop" and "don't repeat" are contradictory, because if you don't make it loop, the sound will reach the end eventually. If you make it loop, the sound won't end, but it'll repeat.

  • Please login to see this attachment.

    but this :
    Then, use the "Play sample" or "Play sample on a specific channel" action to play the sound at the start of the first of the five frames.


    mmmm.
    look i have
    frame1 : is the titel game
    frame 2: the menu

    frame 3 : i rename it level 1
    frame 4 : i rename it level 2

    now in which frame i have to change this '' "Play sample on a specific channel"
    1 - start of frame,
    > Play sample on a specific channel
    > enter expression to calculate ( ??? )

    but the music break out
    when i move the player

    Edited 2 times, last by hassahn (July 8, 2015 at 6:41 PM).

  • I dont understand the confusion, you dont need to use channel.......you just need to enable "multiple sounds" and "play sounds over frames"....then, in the first frame, you make start of frame> play and loop sample, choose the sample, mark "uninterrupted" checkbox....and choose loop count to 0....then will be infinity.....

    Please login to see this link.

  • its work the music dont stop from frame to other ( this is good :) thanks


    but :)
    when i die in this game the music will stop
    and only in the first frame the music will repeat....


    what i want is:
    that the music should never stop. even when i die, and for every 5 frames a neu music

    may be i forget somethingPlease login to see this attachment.

  • Yeah man...like BoxFigs said.....

    No, its not "No music is playing" event..

    Click on new event, go to sound>Samples>Is a specific sample not playing.

    Then select "MilkyWay" sound....then....on action you do the play sample MilkyWay 0 times.

    I dont know if this is a one fire event...so, just to precaution, I would add the "only one action at event loops" condition below the "MilkyWay is not playing"


    PS: If you will play this on all frames....you can add this condition in global events...then you will not need to copy this event in all frames

    Please login to see this link.

  • look i thank you all really :)

    the music from frame to frame works
    BUT when i die in this f...... game
    the music will repeat , and this what i dont want


    Please login to see this attachment.

  • Hmm... It should keep looping until it's told to stop. Perhaps there's a "Stop any sample" action somewhere or another event that plays the same sound.

    Pao, an "Only one action while event loops" condition isn't needed because once the event runs, it doesn't run again because the sound is playing. The "Sample is not playing" is a looping condition, but the running the action makes the condition no longer true, so it effectively makes the event non-looping.

  • Does your character have a lifebar or lives counter? If so, you can set an event like this:

    Lifebar >0
    + Milkway is playing (negate this so that it tells the code that it IS playing when you have more than zero health) > Stop sample "MilkyWay"

    This is how i do it in my game and it works perfectly. Good luck!

    Developer/Composer :

    Vamprotector

    Castlevania Chronicles 2 - Simon's Quest

    Castlevania Chronicles 3 - Dracula's Curse

  • Just a quick thought, do you use "Restart frame" when you die? If you do, replace it with "Jump to frame" and select the frame you wish to restart.

    Currently working on Please login to see this link.
    Released games: Please login to see this link. and Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!