Announcement

Collapse
No announcement yet.

How to input sounds for when player kicks a ball?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to input sounds for when player kicks a ball?

    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?
    Last edited by slam937; 02-22-2016, 07:33 PM.

    #2
    Simply by adding that logic to ball hit event, something like this:
    Click image for larger version

Name:	something like this.PNG
Views:	1
Size:	58.0 KB
ID:	1101093
    Last edited by Galaxyman92; 02-23-2016, 06:57 PM. Reason: bad grammer, engrish?

    Comment


      #3
      Originally posted by Galaxyman92 View Post
      Simply by adding that logic to ball hit event, something like this:
      [ATTACH=CONFIG]80113[/ATTACH]
      That was much easier than I expected. Thank you Galaxyman92.

      Would you know how to input the sound of a bounce for when the ball bounces after the kick?

      Comment


        #4
        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
        Click image for larger version

Name:	something like this.PNG
Views:	1
Size:	87.2 KB
ID:	1101317

        Second One:
        Click image for larger version

Name:	or this.png
Views:	1
Size:	107.9 KB
ID:	1101318

        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

        Working...
        X