#Audio

1 messages · Page 1 of 1 (latest)

wispy hedge
#

I’m working on building a fully functional custom hidden blade that doesn’t use a trigger handle or anything like that but I’m running into a problem with the audio because the whole system runs on a 30 Hz when I go to play the audio it just gets spam played in overlaps with each other. Is there a way to turn a 30 Hz into a singular input or just something anybody have any ideas?

feral flax
#

"Variable changed" events!

#

Whenever you make a variable, event senders/receivers will get access to a new event called "[your variable's name] changed", it doesn't matter how much you spam the variable, this event will only trigger when it successfully changes to something different. So you can spam a bool variable to whether or not the blade should be out, then plug this event into an If to get just a single signal when the blade is activated or deactivated.

sly reef
#

search up the name of the variable

wispy hedge
#

Do you know the orange one?

#

That literally everything works off of

sly reef
wispy hedge
# sly reef the event reciever has an orange execute output pin

Yes, but there’s no variable for the execution. I’m trying to turn a 30 Hz into one singular output. I have scoured the invention page. I’ve looked at every single possible event, receiver, and sender. There’s nothing that just turns it down to a singular input.

sly reef
#

use a variable changed event

#

Any variable, could be a bool or an int, will have an event created for it in the event reciever

wispy hedge
#

It doesn’t that’s the thing it’s not a bool . It’s not an int It is an execution. It is the orange thing that happens when you click a button or fucking click an interaction volume. It doesn’t have an event I have looked.

sly reef
#

use a variable changed event omg

wispy hedge
#

There’s no such thing

sly reef
#

when you want to activate the audio, switch a bool variable to true

#

that will activate the variable changed event (for that variable) in the event reciever

wispy hedge
#

It doesn’t use a bool

sly reef
#

then add one

#

thats the solution

wispy hedge
#

I’m using an execution that’s cause. It’s the only way to activate a play audio

wispy hedge
sly reef
#

omg

#

I can't

#

I give up

wispy hedge
#

You can’t add a bool to something that uses an execute to activate play audio at position does not use bool. It uses a bool for fucking is 2d audio

#

Not activated not to play it

sly reef
#

you aren't using the bool information, you're just using the variable

#

it will turn the 30hz into a single execution

wispy hedge
#

You guys are explaining it in a way like oh yeah it’s just an event that you can click

sly reef
#

you change the value of the variable

sly reef
#

when a variable changes its value, an event fires in the event reciever

wispy hedge
#

Dude, I have literally clicked on every single possible option on event receiver and event center. There’s no such thing as a variable changer.

sly reef
#

there is

#

try this: make a variable, name it something distinguishable, then look for that name in the event reciever

wispy hedge
sly reef
#

oh I see

sly reef
#

it is the name of the variable

feral flax
#

@wispy hedge how do you detect if the hidden blade should be open or closed in your current circuits?

wispy hedge
feral flax
#

Okay, plug a Left Hand Is Closed chip into a bool Variable, then name the bool variable whatever you like. Plug your 30hz into this bool variable as well.

wispy hedge
feral flax
#

Is it saying something like "source object is too large"? If so that may mean part of the invention is way too far away from the rest of it

wispy hedge
#

This is me, just trying to save the hidden blade with the pistons

#

My studio map is just extremely broken. It has always been that way.

feral flax
#

Using the Edit tool on the piston, you may have something inside it that is really far away

#

Or actually better yet

#

Configure the piston itself, and select "Delete Object Board" (if you don't have anything custom inside it you want to keep)

#

Then the button should instead change to say "Create Object Board", and it will be remade with all new chips. If the issue was indeed that something in the board was too far away this should clear it