Hi, in my project I have balls scattered around my scene which my player is able to kick when they move up to the ball (simulate physics is turned on). How would I go about inserting a kicking sound when this occurs? And also bounce sounds when the ball bounces?
Announcement
Collapse
No announcement yet.
How to input sounds for when player kicks a ball?
Collapse
X
-
Originally posted by Galaxyman92 View PostSimply by adding that logic to ball hit event, something like this:
[ATTACH=CONFIG]80113[/ATTACH]
Would you know how to input the sound of a bounce for when the ball bounces after the kick?
Comment
-
hmmmm...... not quite sure how to detect consequent hits that are after the first hit, which is basically the bounce hits.. out of the top of my head I figured two ways, can't test it since I am lazy.. give each a try and give us the results:
First Method
Second One:
Edit: Just figured for the second method you need a way to reset the first hit bool, in case the character hits the ball again.Last edited by Galaxyman92; 02-26-2016, 05:54 PM.
Comment
Comment