Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jun 24, 2014 at 04:43 PM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by prophet968 · Nov 06, 2012 at 06:58 PM · audioforstepfoot

Walking audio needed

Hello! Thanks for helping :)

currently in my game (Alot like slender, but better) i have it basically complete. Paper, Slender,everything!

but im missing one thing and thats the walking audio.

I have a script built to play the audio the only problem is, It plays it at a time. so my audio has to only be one step for it to work.

I cant find ANY of these online, and i really need some help.

The games based in a grassy/woodlands enviroment.

Someone, Please! Help!

Thanks!

-Prophet968

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

  • Sort: 
avatar image
2
Best Answer

Answer by AlucardJay · Nov 07, 2012 at 01:27 PM

I wrote an answer here for swapping between walking and running footsteps (no sound when not moving) : http://answers.unity3d.com/questions/343383/switch-between-two-different-sounds-for-walking-an.html

Edit : Here's a version just for walking and stopped :

 #pragma strict
 
 var walk : AudioClip;
 
 var isWalking : boolean = false;
 
 function Start() 
 {
         audio.Stop();
         audio.clip = walk;
 }
 
 function Update() 
 {
     GetState();
     PlayAudio();
 }
 
 function GetState() 
 {
     if ( Input.GetAxis( "Horizontal" ) || Input.GetAxis( "Vertical" ) )
     {
         // Walking
         isWalking = true;
     }
     else
     {
         // Stopped
         isWalking = false;
     }
 }
 
 function PlayAudio() 
 {
     if ( isWalking )
     {
         if ( !audio.isPlaying )
         {
             audio.Play();
         }
     }
     else
     {
         audio.Stop();
     }
 }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by goldkillerv · Nov 07, 2012 at 12:52 PM

Here's the link to a fast walk audio: Fast-Walk

Tell us in detail of what you want such as a walk in some kind of room or walk outside on stones? etc..

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by angrycarrots · Feb 22, 2013 at 03:52 AM

Wait, here is the easiest script in the history of man kind. Make sure that you attach this script to an object that has an audio source:

 using UnityEngine;
 using System.Collections;
 
 public class Running : MonoBehaviour {
     
     void Start () {
     
     }
     
     void Update () {
         if(Input.GetKey("w")){
             if(!audio.isPlaying)
                 audio.Play();
         }
         if(Input.GetKeyUp("w"))
             audio.Stop();
     }
 
 }
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image angrycarrots · Feb 22, 2013 at 03:54 AM 1
Share

AND $$anonymous$$A$$anonymous$$E SURE YOU HAVE THE RUNNING AUDIOCLIP IN THE AUDIO SOURCE OBJECT :D

avatar image
0

Answer by SFX-AND-MUSIC-FOR-GAMES · Jun 24, 2014 at 04:39 PM

If you need actual walking footstep sounds I'm selling a pack of over 100 footsteps on various surfaces for only $5.00. Let me know if you need any sound effects or music for projects. Thanks, Adam adam@craftmediagroup.com

http://www.craftmediagroup.com/store/

http://www.craftmediagroup.com/sounddesign

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Jun 24, 2014 at 04:43 PM 0
Share

This really isn't the place for advertising your product, but it is relevant to this thread (even if the thread is old and inactive). I've given you the benefit of the doubt ;)

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Sound not working? 1 Answer

audio.Play ignoring WaitForSeconds 2 Answers

Randomly play audio 0 Answers

Change the Audio SampleRate 0 Answers

Audio doesn't play 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges