Valentin's Recent Forum Activity

  • I did it!

    Sorry for incomprehension!

    Thank you much!

  • So.

    I have 5 songs. I play it randomly with choose("S1", "S2", etc.)

    Its okay.

    And i have 5 pictures, i want to set:

    If S1 playing

    On touched P1 Go to layout X

    On touched P2 Go to layout Y

    On touched P3 Go to layout Y

    etc.

    My problem is i can't add tag names to the songs... so it doesn't work "If S1 playing" ... because there is no any audio with S1 tag...

    How could i solve this???

  • It works now fine.

    But i have other problem...

    Choose song1....song9 and play it randomly. It's okay.

    And 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?

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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]

Valentin's avatar

Valentin

Member since 11 May, 2014

None one is following Valentin yet!

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies