Valentin's Forum Posts

  • choose("song1", "song2", "song3", "song4", "song5")

    This way works fine thank you!

    But i got a problem.

    I have set like:

    If song1 playing

    Picture1 position x,y

    If song2 playing

    Picture 2 position x,y

    etc.

    Well... song1(or one of them songs) really starts to play randomly, but pictures position not changin... so it doesn't "see" when (for example)song1 is playing...

    How can i resolve it?

  • I have 5 Song.

    If i click on "start" button i want to start play randomly one song of them.

    Thank you!

  • Thank you both!

    Manarsoft, your way simple and works fine, Thanks!

  • My set:

    On start of layout:

    picture 1 position x,y

    picture 2 position x,y

    Play Song1

    Okay but i want it with 3 sec delay before song.

    So i set:

    On start of layout:

    picture 1 position x,y

    picture 2 position x,y

    (new event)

    Compare time = 3 sec Action: Play Song1

    It works fine at the first time i start the layout... but when i click a button with set(restart layout) then the picture position get right BUT the Song1 doesn't play again ... not only 3 sec but not at all.

    Please help

  • So if i set a button to "restart layout"

    it should play the first song again and show the pictures again how i set it... but nothing happens. The song doesn't start playin and the pictures don't show...

    If i test my game everything goes well at the first time... song plays pictures show... but when i click "restart button" it crashes.

  • Hmm Thank you, but can you explain it better how can i set these?

    "Global Numbers variables:

    S1 / P1 / S2 / P2, etc... to 0 each

    You need to set tags in your "Play" sounds.

    On S1 stops playing: if P1 = 0 then player loses. if P1 = 1 play next random sound and set P1 = 0."

  • It's easier than I thought, thanks!

    So this is more difficult i think:

    If i have 5 sound and 5 picture:

    S1, S2, S3, S4, S5

    P1, P2, P3, P4, P5

    S1 fit to P1, S2 fit to P2 etc.

    If i touch "play" button randomly start one of the sounds...

    if S1 started i have to touch P1 while sound is playing and then i get 1 score and an another sound starts randomly and it goes on like this BUT if i touched other picture (P2, P3, P4 or P5) OR the first sound is ended the game over (destroy all picture for example)

    (After i touched the right picture and an other sound get started for example S3, i can't touch P1 anymore because as i wrote i have to touch the picture that fits to right sound)

    I can not figure out how can i do this

    It would be really big help to me!

  • How can set if ihave 5 sounds to playing it randomly sequentially???

    So i have:

    S1, S2, S3, S4, S5

    I want to play these randomly automatically one after the other when i touch "play" button: S1, S2, S5, S1, S3, S2, S4, S1, S5, S2, S5......

    And if i restart it and touch play button again the sounds should play on other way (this how i mean randomly)

    Thanks!

  • I started a new project and trying to make it works, that's why here is button and not picture.

    Anyway it's working now this way:

    [attachment=0:2ukem4sk][/attachment:2ukem4sk]

  • Thank you for this!

    But i got a problem.

    "What you can do:

    Create an event (by going to system, under General: compare two values) and it would say:

    First value:

    PlaySong1

    is greater or equal

    value: 2"

    HERE i can't set first value to "PlaySong1" because it says: unknown expression, this is not system expression or variable name in this escope.

    If i see right i can add here only value as numbers.

  • Hey

    How can i do that i touch a picture song starting and if i touch that picture again the song stopping?

    Thank you!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • There is it!

    Thank you for your help!

    Bonus:

    If i want to stop the song (1) when i touch the picute (1) one more time... how to do that?

  • I would like to creat an app if i touch 1. picture the 1. song is starting then if i touch picture 2 the first song stops and startin the 2. song...

    How to do that?

    Thanks!

  • So i creat a "game" if you touch an object a music starts playing and i would like to set if you touch on it again it should stop.

    How can i solve this?