#How to make a jump sound and double jump sound in 4x?
1 messages · Page 1 of 1 (latest)
The first sfx it on the second jump and the second sfx is for the first jump
Ok
There is a delay.
Paste the script in when tapped instead of when released
And if you spam it, it keeps ringing multiple times.
Oh right i didn't think about that
I'm going to fix the code
Add this component to the main actor with the variable in the image
This is the "when object is created" script of the component
And this is the jump button (when tapped, not when released) script
How to make the component?
Like this?
Yes. But in the settings of the variable, put false as initial value
And if it doesn't update make it manually as false
Like this?
Yes
Its working but its has a delay
Forget it, it was my headset
Wait, there's still a problem
When I start the map or die, the sound doesn't work.
What do you mean by "start the map"
When I enter the map, like, I exit the editor and enter...
By the way, if I stand leaning against a wall, the sound plays repeatedly when spamming.
You didn't add the sfx for the double jump, it has to be below the "set true/false1=true" block. Both of the sfx blocks must not be orange
To make them blue, click on that curved arrow on the left of the blocks
I dont want the double jump sound for now
Even when I add the blue SFX, it's still muted for the first few seconds.
OK
That's normal because the sfx are still loading