Licenza da 75 € Accedi
DE EN FR ES IT CZ

Verwendung von startSound

Questa discussione ha qualche anno. Alcuni dettagli potrebbero riferirsi a una versione precedente di Visionaire Studio. Tutorial aggiornati

  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. Stai lavorando a un gioco?

    La versione gratuita consente fino a 25 scene per progetto. Per più scene e per vendere il tuo gioco ti serve una licenza.

    Vedi le licenze Provalo gratis
  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.

Questa discussione è chiusa perché nessuno risponde da più di un anno. Puoi fare la tua domanda in una nuova discussione.

Nuova discussione

Eliminare davvero questo messaggio?