User prompt
I mean Hz make it to have very low Hz to make the player (white duck) move
User prompt
Make the other ducks to move more slow
User prompt
Ok perfect. Now I want to make the player (white duck) to move if the sound it hears is very high decibells. Also I want to have in the screen on the above the volume of decibells ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
Please make the white duck move only if I speak and not if it hears any sounds. Specifically, it is okay if I don't speak, it does not move, but when the other ducks do a sound it moves. I do not want this ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
Please remove the waves below
User prompt
Make the brown ducks to move quicker and make the player (white duck) not to move unless I speak ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
Make the player (white duck) not to move if I don't speak ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
Remix started
Copy Duck Race
===================================================================
--- original.js
+++ change.js
@@ -39,10 +39,10 @@
anchorY: 0.5
});
self.speed = 5;
self.update = function () {
- if (countdown == 0 && facekit.volume > 0.8 && facekit.mouthOpen) {
- self.x += facekit.volume * self.speed;
+ if (countdown == 0 && facekit.frequency < 20 && facekit.mouthOpen) {
+ self.x += self.speed;
}
};
return self;
});
@@ -101,9 +101,9 @@
duck.speedVariation = 0;
}
}
}
- volumeText.setText('Volume: ' + Math.round(facekit.volume * 100));
+ volumeText.setText('Frequency: ' + Math.round(facekit.frequency));
if (playerDuck.x > finishLine.x) {
LK.showYouWin();
return;
}