Various Questions
Posted: 20 Apr 2016, 14:28
I don't know how to disable hud on lunalua
2nd question:Can use Lunalua in global codes?(Not single level)
2nd question:Can use Lunalua in global codes?(Not single level)
Code: Select all
Graphics.activateHUD = falseCode: Select all
Audio.playSFX("mySound.ogg")Code: Select all
Audio.PlaySFX(Misc.resolveFile("mySound.ogg"))I tried this,still no sound yet.This means I can't use SDL2 Mixer. Sorry.Sambo wrote:Are you having problems with sound effects not working in general, or are you trying to play a custom sound effect?
If NO sound effects or musics are working (including the default ones), you need to set the system variable (This is for Windows only):
1) Go to "Control Panel\System and Security\System"
2) Click "Advanced System Settings" on the left panel
3) In the window that pops up, click "Environment Variables." It is toward the bottom.
4) Create a new variable called "QT_PLUGIN_PATH" (no quotes) and set it to the absolute path of the PGE editor program (inside qoutes) (ex. "C:\Users\Weslie\PGE\pge_editor.exe")
You sure gave up easy.I tried this,still no sound yet.This means I can't use SDL2 Mixer. Sorry.
There is no global LunaLUA file, at least as far as I know. I don't know why you would want something like that, since changing the behavior of the engine on a global level could break other episodes anyway.Question 4:Lunaglobal.lua?
That no need because I fixed that bug long time ago. Latest PGE version (with most fresh SDL Mixer X which a my fork of SDL2 Mixer) plays all sounds and musics of any sample rate and supports any images and no more needs extra environment variables.Sambo wrote:4) Create a new variable called "QT_PLUGIN_PATH" (no quotes) and set it to the absolute path of the PGE editor program (inside qoutes) (ex. "C:\Users\Weslie\PGE\pge_editor.exe")
By default that sound is looking in level custom folder, to look in the episode folder must be:Sambo wrote:Audio.playSFX("mySound.ogg")
Code: Select all
Audio.playSFX("../mySound.ogg")