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 Oct 03, 2014 at 07:19 AM by Benproductions1 for the following reason:

Asking for code

avatar image
0
Question by ShirleyXiao · Oct 03, 2014 at 04:31 AM · movementmovement scriptwalkingwalk

Walking using 2 buttons alternately

Hi, how do I make the character walking using 2 button, like 'A' and 'S' alternately, instead using just single button to move forward? You know, kinda like when we walk, right and left? Is that possible? Thanks in advance.

Comment
Add comment · Show 2
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 Benproductions1 · Oct 03, 2014 at 07:28 AM 0
Share

To sum up, asking "how do I make" questions is not how you solve problems.

This website is here to do one thing: help you solve your Unity specific problems.

This website is not here to:

  1. Educate you. The only $$anonymous$$ching here is pointing towards other resources (if that). If you don't even understand software development, then why are you here asking about it?

  2. Solve your problems for you. If you want someone to do that for you, hire them. You don't go around the streets asking people to build your shed for you, so why do it on the internet?

avatar image drudiverse · Oct 03, 2014 at 07:44 AM 0
Share

that's not a unity specific question. it depends if you have 2 legs to move or just a solid movemnt, just assign a and s to alternatively advance the player by n amount, linear or click speed relative amount.

1 Reply

  • Sort: 
avatar image
1

Answer by Andres-Fernandez · Oct 03, 2014 at 07:00 AM

First, I believe this is a design question and should go into the forums.

Second, if you ask whether it's possible or not it sounds like you haven't even tried anything. Someone should play the What have you tried? card.

Third, yes. It is possible and can be easily achieved by using a simple state machine with an enum or even a couple booleans.

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

Follow this Question

Answers Answers and Comments

29 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 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 avatar image

Related Questions

When I jump then walk, my character suddenly starts walking mid-air... 1 Answer

Movement 3D. Impede the character to come out of floor. 0 Answers

How Time.deltaTime affects movement ? 4 Answers

What should i write that when i press "Shift" it will speed up idk how shift is named? Here's the code: 1 Answer

How can I straighten my character's movement and actions? 0 Answers


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