Fengist's Recent Forum Activity

  • Most welcome.

    By the way, I don't speak Polish, but I loved the quality and sound of the voices and music you have there.

  • Yes, it looks like a silly approach, but I was looking for a way to call this function once and I didn't find anything.

    Yep, I realized what you were trying to do and why you were trying to do it. And it was a valiant attempt. Here's the thoughts just off the top of my head. Have an array of all of your voice files with say 2 fields, the file name and a boolean (as a string). Pass the file name to the 'speakText' function as a parameter. When the speakText is run, have it check the array and see where that file name is in the array and then, set the boolean to true. When the On "textAudio" ended is run, you can again, look at the array and see which one is set to true and that tells you the last audio file played. That way, you can get away with using 1 tag and still know which voice file was played last.

    This is probably not the prettiest solution, but it works :-)

    Elegance is for physicists.

  • To quote the tips for this forum:

    "SHARE YOUR PROJECT

    It's difficult to help if you merely describe your project, or even if you post a screenshot of your events. It's much better to share your actual project, which is normally a .c3p file."

  • I think this is what you want:

    twistedvoid.com/c3examples/testSpeaking2.c3p

    I added a new parameter to the speakText function called thisTag and updated where you called the function to pass a tag textAudio or textAudio2.

    If it's not what you want, it's a start to solving your problem.

    You'll have to move or change this function though.

    + Audio: On "textAudio" ended

    -> Audio: Fade "music1" volume to 0 dB over 0.1 seconds, then keep playing

    -> Audio: Fade "music2" volume to 0 dB over 0.1 seconds, then keep playing

  • It's doing what you're telling it to do. You've set up an infinite loop that tells it to play a sound file with the textAudio tag when a sound file with the textAudio tag ends.

    + Audio: On "textAudio" ended
    -> Functions: Call speakText (fileName: "trzy")
    
    * On function 'speakText'
    -> Audio: Play fileName not looping from Sounds at 0 dB (tag "textAudio")
    

    You call that function the first time here:

    + System: Trigger once
    -> Functions: Call speakText (fileName: "tututu")
    
    + System: Else
    -> Functions: Call speakText (fileName: "raz")
    

    Once you call the function, it plays the file with the tag textAudio.

    The next tick it checks to see if textAudio has ended, if it has, it plays trzy with the tag textAudio.

    The next tick it checks to see if textAudio has ended, if it has, it plays trzy with the tag textAudio.

    The next tick it checks to see if textAudio has ended, if it has, it plays trzy with the tag textAudio.

    The next tick it checks to see if textAudio has ended, if it has, it plays trzy with the tag textAudio.

    etc....

  • For that, CSS.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • or scaling up a 16x8 sprite if the graphic isn't too important?

  • I noticed this as well but since I don't use effects very often I assumed I was doing something wrong.

  • Don't know a thing about them but, I would be VERY surprised if ads are shown to developers. Just as a test, try it from another computer without logging in.

  • Pin behaviour

  • To my knowledge, silent mode on a phone only affects the ringer volume. It doesn't have any effect on audio output from the browser.

    *edit

    Found this which explains it a bit better

    stackoverflow.com/questions/43440882/can-javascript-detect-if-a-mobile-device-is-muted

  • I've used FontForge in the past to create custom fonts and it does a decent job and it's not too difficult to use. I believe it can save in .woff.

    fontforge.github.io/en-US

Fengist's avatar

Fengist

Member since 6 Nov, 2015

Twitter
Fengist has 7 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies