License from €75 Log in
DE EN FR ES IT CZ

Verwendung von startSound

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 9 years ago
    ich habe probleme, sound per lua zu starten. 
    mein soundfile befindet sich in "Visionaire Games/Fleischtage/Sound/testraum/testsound.ogg". Ich versuche:
    startSound("vispath:Sound/testraum/testsound.ogg")

    ist das korrekt?
    log sagt mir nur, dass der sound nicht abgespielt werden kann. 
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 9 years ago
    It's better if you create a Lua table to store sounds into. Alternatively you can also use variables too.

    sndz = 
    {
     ["testsound"] = "vispath:Sound/testraum/testsound.ogg",
     ["wilhelm"] = "vispath:Sound/testraum/wilhelm.ogg"
    }
    
    startSound(sndz["testsound"])


    Something along the lines of that.
  4. · 9 years ago
    thank you. the problem was, that i wanted to play it "at begin of scene". it didnt play, no matter what i typed. after setting a small pause of 50 ms it works. guess visionaire was too fast :-) 
  5. · 9 years ago
    Ah yeah, you need to add a pause in at begin of scene action part as some things require the scene to load first.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?