cara membuat script kontrol player unity3d

By Tutorial Game B.indonesia → Thursday, 12 March 2015
cara membuat script kontrol player unity3d


memberikan  kontrol player dengan axis berupa  horizontal dan vertikal ,sehingga karakter bisa bergerak maju mundur kiri  dan kanan

script ,java script
//basic input axis  pada player

function Update () {
var kirikanan : float = Input.GetAxis("Horizontal");
var majumundur : float = Input.GetAxis("Vertical");

transform.Translate(Vector3(kirikanan,0,majumundur));
}

Post Tags:

Yari

Assalamuallaikum perkenalkan saya yari. selamat datang di blog sederhana sya .saya indie developer. I love create game and write about game,game design,create 2D/3D game,reskin ,Terimakasih .