Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 /
avatar image
7
Question by haser11 · Nov 02, 2011 at 08:02 PM · cameracharactermovefollownewbie

How to make your character move?

This is my first time making video games and I decided to use unity because mainly it was free. I am learning about terrain but my main problem is how to make the character your using move and how to make the camera follow him/her. Can someone help me out and explain it very simply because like I said this is my first time?

Comment
Add comment · Show 5
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 FLASHDENMARK · Nov 02, 2011 at 08:12 PM 2
Share

There is a prefab called "First Person Controller" inside Unity, search "First person Controller" in the project panel and drag it into the scene view, and play the game.

avatar image haser11 · Nov 02, 2011 at 08:31 PM 0
Share

Thank you so much that helped a lot

avatar image Gokuto · Feb 27, 2013 at 03:54 AM 0
Share

Thanks, I am new and was having trouble with that too

avatar image awesome productions · May 31, 2015 at 01:07 PM 0
Share

thank you that really helped me too because I am new to unity

avatar image pixelcarl74 · Feb 29, 2016 at 10:04 PM 0
Share

Thanks used this and it worked great added some up and down code as well.

8 Replies

· Add your reply
  • Sort: 
avatar image
8
Best Answer

Answer by Wentzel · Nov 02, 2011 at 08:48 PM

var MoveSpeed : int = 0.5;

function Update () {

if(Input.GetKey(KeyCode.UpArrow)){

 transform.Translate(Vector3,MoveSpeed,0,0);
 
 }

}

I couldn't test it as i'm using my phone. This is just a simple way of moving your object if you change "Translate" into Rotate you can well rotate your object.

i'm new myself :P

I would reccomend http://www.unity3dstudent.com/ site since your new and is a great place to start.

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 ScottPropst27 · Jan 07, 2021 at 10:48 PM 0
Share

where do i put this in a script

avatar image
4

Answer by Penaloza12 · Jul 28, 2015 at 09:51 PM

This should work for you. this is a using UnityEngine; using System.Collections;

public class Movement : MonoBehaviour {

 public int movementspeed = 100;

 // Use this for initialization
 void Start () {
 
 }
 
 // Update is called once per frame
 void Update () {
     if (Input.GetKey (KeyCode.A)) {
         transform.Translate (Vector3.left * movementspeed * Time.deltaTime); 
     }

     if(Input.GetKey (KeyCode.D)) {
         transform.Translate (Vector3. right *   movementspeed * Time.deltaTime);
     }
 }

}

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
2

Answer by ThePussyCat · Mar 21, 2017 at 08:48 AM

You can also use this for moving an object.

 float movSpeed = 7f;
 
 void Update {
 transform.Translate (new Vector3 (Input.GetAxis("Horizontal")*movSpeed*Time.deltaTime), 0, Input.GetAxis("Vertical")*movSpeed*Time.deltaTime));
 
 }

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 paulchabot · Nov 13, 2020 at 04:56 PM 0
Share

Thank you for this, you help me figure something out I was struggling with.

avatar image
1

Answer by CreativeStorm · Nov 02, 2011 at 08:48 PM

Youtube can become a good friend to you learning Unity - there are lots of tutorials ;) a quick search brought up this: http://www.youtube.com/watch?v=od78RhlLXUI&feature=related

there are much more and maybe some better - watch a couple of them will point you the right direction.

you can find tutorials everywhere on the web most are really simple, quick and nice to get familiar with Unity ;) Ask google.

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 tommytop · Jul 15, 2013 at 07:50 AM 0
Share

It is very useful to make my charterer move yes it is exactly right concept, share good stuff with good ideas and concepts, lots of great http://superiorpaper.net/dissertation-help information and inspiration, both of which I need, thanks to this concept.

avatar image
1

Answer by rebeccahickshq · Sep 16, 2017 at 01:10 AM

I appreciate it!. I really like it when people get together and share ideas. Great website, continue the good work!. Either way, great web and I look forward to seeing it grow over time. Thank you so much. http://supersmashflash-2.com |=>super smash flash 2 http://bloonstowerdefense5game.com |=>bloons tower defense 5

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
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

26 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

Related Questions

object follow mouse on x-z plane with angled camera 0 Answers

Want my camera to only move on a Horizontal Axis 1 Answer

Character Runs Off Camera 2 Answers

Camera animation into a scene –most efficient way? 2 Answers

How to make a camera that moves with the player? 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