Saturday, October 17, 2026

Unity game 3d sidescoller game devlopent

 Hello friends this your fist project.  first open your  unity Game engine create first projet name you want.

create asset new folder name plateform. here are you 3d plateform import. then drag seenview 

3d plateform. and. after you create new  matarials. imge texture drag matarial.then drag matarial seen view your 3d plateform. then you create 3d plateform unity.


player create setup your peoject:-

Import you charater you wont 3d model like maximao chater or Animation. asset  under create floder 

player import 3d charater. seenview drag your charater positon And scale your Accouding. setup your

 charater. inspector Add component Rigidboidy. then next Add component capsual colidor. capsual 

colider chater body full setup. 



Hello frieds Affter that Add componet script. script name playermovent. open your playermovement script


you see Above imge public float maxSpeed this varivel playe speed setup. next varival public float

MoveDirction this variver your playe dirction setup. next varival bool faceingRight =true this varival

your  playe charater flip setup. next varival is private Rigidbody the varival unity engine player 

rigidbody setup  you see your Script void Start () this function Insilise some unity engine Component

like rigidbody ,Animator, and other varival. you see Above Imge  rigidbody=GetComponent<Rigidbody> (); this is Insile your rigied body compnent. 


hello guyes I  told you some function void Update() this function you game fame setup. you prese

your keyboard key A and D your player move per frame this function work. and next function you see

Imge void FixedUpdate() this function your game unity engine fixed per frame. your move playe 

rigidbody fast move fixed frame not per frame. you see Imge  moveDirction =  Input.GetAxis

 ("Horizontal"); this function your playe move function prese keyboard A & D plyer move.

the next  told you rigidbody.velocity = new Vector2(moveDirction*maxSpeed,rigidbody.velocity.y);

Appy your script your imge Accourding then go to you game And play your move. now exeplen 

function new vector2 this functio used only 2d game devlopment but  you create 3d side scoller.

side view Accourding vector 2 used. rigidbody.velocity.y  this finction repregent y Axes.