- Home /
Character moving script!
Hi guys, We are a group of noob game makers and we want to make our own game. The problem with what we're having now is that we don't have a clue on what we should do right now and are therefore asking some help on the forums!
We have a 3D-modell with armatures ready, and what we're trying to do is that we want to put Lerpz's walking script from 2D platform tutorial, into this 3D model... the problem is that we don't know where to begin >_>...
Help is really appreciated!!!
Thank u in advance, from the Jevas team!
Answer by Rybanez · Jan 14, 2011 at 11:21 PM
If you need help with some basic character moving controls, have a look at some of TornadoTwins videos on youtube. by the second tutorial, you can have a basic knoledge of character control in no time! (some java scripting)
http://www.youtube.com/watch?v=5wxe1IUu5QA&feature=channel
hope they help you!
Answer by Rybanez · Jan 16, 2011 at 04:11 PM
Oh and also here is some JavaScript for a basic character (single shape or a few parented shapes e.g. circle, square etc.) movement.
var speed = 3.0; var rotateSpeed = 3.0; function Update () { var controller : CharacterController = GetComponent(CharacterController); transform.Rotate(0, Input.GetAxis ("Horizontal") rotateSpeed, 0); var forward = transform.TransformDirection(Vector3.forward); var curSpeed = speed Input.GetAxis ("Vertical"); controller.SimpleMove(forward * curSpeed); } @script RequireComponent(CharacterController)
Plus here is a website that will not only help with unity in general but will help you learn basic and advanced JavaScript!
http://www.unity3dstudent.com/
Really hope this helps with your games!
Your answer
Follow this Question
Related Questions
gravity gets too strong and plane falls to the ground help 0 Answers
Moving Platform Collisions with Custom Movement Script 0 Answers
Moving box 2 Answers
Moving character to a specific point ? 0 Answers