Search the Community
Showing results for tags 'sound'.
-
Hello. I thought about a physic property for materials where you would choose the kind of material (water, wood, concrete, grass, etc.). Then, from lists of sounds (i.e. walking sounds for the player kind of list), Leadwerk would play them randomly depending on what materials the player is interacting with and depending on the physic of the material. I don't know how complicated this would be to add. I know I could try to make a system like that by I think having it natively into Leadwerk would be a good point for Leadwerk. Thank you and have a nice day.
-
Hi there team!! I have another programing/sintax question to answer... I want load and play a sound file by LUA pressing 3 keys on my keyboard (without using any PIVOT. Without using NOISE.LUA script. And without using the Flowgraph). Only executed from code of my MAIN.LUA on my project... I have write this, but i don't know if i need anything more, or the sintax is bad writen. The code doesn't give me any errors, but i can't ear anything: if window:KeyDown(Key.J) and window:KeyDown(Key.F) and window:KeyDown(Key.V) then local SonidoJFV = Sound:Load("Sound/MisSonidos/Va
-
Hello again, I finally got footsteps sounds to work properly on the correct material using triggers. But I have been unable to get a sound to be played at the correct time when the player jumps and lands on a material. How would I implement such a feature using a trigger? EDIT: I manged to work this out in the end. I did this by making global variables of both the players jump status with the GetAirborne command and the players current speed using GetVelocity():Length command. I then made a jump trigger box combined with the necessary commands for collision detection. Upon player col
- 2 replies
-
- lua
- character controller
-
(and 1 more)
Tagged with:
-
Want to share this, for people needing sounds. Its a graphical programing environment for creating sound effects. It also has a library that can be linked and used from your program. Only downside i see is might take some time to learn lots of documentation. https://puredata.info/downloads/pure-data
-
When i load a sound properly and that is existed, it will make an error indexing nil. It happens recently with all sounds, the noise script makes no noise also. I have replaced the path with an existing file (in the fpsplayer th footstep ) and also tried it with the noise.lua
-
function Script:UpdatePhysics() Script.H=false Script.count = 100 ... if H == true then self.Stop() end end function Script:Stop()--in H=true local t = Time:GetCurrent() local bb = 500 if self.count[insert or modify code here] then if t == t+bb then bb=bb+t49 count = count -0.01 self.source:SetVolume(count) end else self:Disable() H=false end end This code is a modified noise script. This code doesnt work, I have a trigger at my map that uses Stop() with the flowgraph . So when I touch the trigger with the fpsplayer the pivot with this script attached the program crashes and says attemt t
-
Is there a way to publish a game as a standalone without having to have OpenAL installed on the computer running the game? I want to submit a game to a game contest my school has, but it needs to be able to run just with the standard windows applications (like I send a .zip folder and they can just run the .exe file)
-
I have two questions regarding sound: 1. What are listeners? I can't find any documentation on what they actually are or are supposed to do. 2. Has anyone tried the firepit workshop item? It uses a source object in the code, but the farther you get away from it the volume stays the same and sounds the same no matter your position towards it (and there is no stereo effect, like if one ear is closer to the sound than the other, although this might not be implemented). I checked that it's a mono sound, so this behavior seems odd to me since the sound gets positioned at a certain point (so
-
It would be nice to be able to click on sound icons to play a sound in the Assets tab in the editor.
-
I've been following the Project Saturn Tutorials and got to the point with the barrels but I get the Error: Attempt to get Length of Field 'sound' (a nil value) How do I fix it. --[[------------------------------------------------------------------- This is a simple script to provide an impact sound for a physically interactive object. ]]--------------------------------------------------------------------- Script.soundfile1=""--path "Sound 1" "Wac file (*.wav):wav|Sound" Script.soundfile2=""--path "Sound 2" "Wac file (*.wav):wav|Sound" Script.soundfile3=""--path "Sound 3" "Wac fil
-
Hello, I would like to know more on how to exactly add sound into Leadwerks. As far as I know there is a lot of vague information when it comes to loading sound into a game in Leadwerks and I would like to know how to do so. What I want to know is how exactly do you load sounds into a map? Is there a way in which I can create say a pivot, attach a script that plays a sound for things such as music or ambience?
-
Hi, When a source has finished playing it gets released every frame. This is a problem, if you want to find out, if it has finished playing, as you can't keep the source (even if you add n AddRefs() for the source, the source will be gone n frames after it finished playing). You can see this by adding a global static variable: [App.h add as class-member] static Source* src; [App.cpp] Source* App::src; [App.cpp: App::Start()] Sound* s = Sound::Load("Sound\\Footsteps\\jump.wav"); Entity* e = world->entities.front(); e->EmitSound(s); src = SoundDriver::GetCurrent()->sour
-
Doe anyone know if you can stop a looping Entity:EmitSound() method without releasing the entity, then start the sound again back in loop mode? It looks like EmitSound automatically creates a Source and the entity manages it. Is there some way to get reference to this Source to call Source:Stop()? EDIT: Nevermind, I'll just create and manage the Source manually.
-
How do I stop the sound? I can not find any Stop(). Sound* sound; sound = Sound::Load(wav_file); sound->Play();