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?
#Audio
1 messages · Page 1 of 1 (latest)
"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.
Where do I even find that?
configure the event reciever, you'll see the events for each variable you've made
search up the name of the variable
No, I’m talking about an execute
Do you know the orange one?
That literally everything works off of
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.
Jeb gave you the answer
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
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.
use a variable changed event omg
There’s no such thing
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
It doesn’t use a bool
I’m using an execution that’s cause. It’s the only way to activate a play audio
Literally impossible
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
you aren't using the bool information, you're just using the variable
it will turn the 30hz into a single execution
I don’t fucking know how to do that
You guys are explaining it in a way like oh yeah it’s just an event that you can click
you change the value of the variable
yes
when a variable changes its value, an event fires in the event reciever
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.
there is
try this: make a variable, name it something distinguishable, then look for that name in the event reciever
as Jeb said here, it is not called variable changed
it is the name of the variable
@wispy hedge how do you detect if the hidden blade should be open or closed in your current circuits?
The hidden blade is typically worn on the left hand so same to the game I have a detected when the left hand is open and the blade comes out and when your hand is closed, the blade goes back in and I also have a circuit to turn on and off the whole thing so you can pick up things and do other stuff without constantly dealing with the blade
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.
The whole circuit is broken somehow inside of my map I broke delay chips and I can’t move the entire circuit either cause I can’t save inventions for some reason it just says something with air trying to save because source object, blah blah blah blah
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
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.
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