I am currently have issues trying to get ambient sounds playing during my day/night cycle. I can get the correct sounds to play at the correct time however they never stop playing and end up overlapping each other. I have tried a few things suggested but I haven’t managed to get it working correctly.
These are my day/night cycles (currently working fine) and the last is my current attempt at setting up an ambient sound to match time of day (e.g. birds during the day, crickets during the night)
BTW, if you think it looks like a bit of a fiddle, take a look at this ( below ), I tried it with the do once nodes! ( it works but still generates one null variable error ):
Awesome, thanks. This is what I have so far. I start my project at 0 (12 midnight) and it plays the night sound but never updates to a day sound, also the night sound doesn’t cut off at 6am as specified. What am I missing? I couldn’t find a Target | Sound node. My day/night sound variables are Sound Base as a veriable type and my Sound Playing veriable are set as Audio Component as a variable type.
Ok cool, I found it and plugged it in, look all correct now but still the same issue. Plays night sound from 12 Midnight when I play my project but doesn’t update to day sound
Ok, well the logic definintely works ( I have pressure tested it ). What I’d suggest is hack it so you can choose when to switch ( don’t wait for the time ), just put a couple of key presses in like this:
Ok, yes, enabled that and switching is working perfectly. I think I may have identified an issue but may not be related to this specific issue however may create further issues with the time of day sound. When i play and it hits 24 hours it doesn’t reset to 0 it just continuesly climbs, I was thinking this might cause issues with it looping as I have the time variable to to 0600 and 1800. Thanks for getting back to me so quickly as well!
I have the same problem setting an ambient sound for day and night.
I can’t get the target variable “get sound”
What kind of variable is “sound playing”?