Game
HOW AM I MAKING A GAME WITH UNITY?

7 years ago

[DEV. 0.0]


I set up the Drag and Drop Script with a camera at a 45 ° angle, in orthographic mode and I raised the camera.

		
			I created the main Game Preface, with a Collider and the Drag and Drop Script inside (otherwise I could not move my Prefab)

I do not allow the prefab to move in Y. Only in X and Z.

I had to create a DrawRay in order to make my Préfab follow this DrawRay so that the Préfab can move in Z correctly

My Prefab is 45 degrees off the ground so it's facing my camera.

I have angles of 45 ° because I wanted to use the depth Z to put one image behind the other according to its Z position and having a 2D effect

When I drag my character to the left or right, I flip the Scale X (-1 or 1) according to the point 0 of my Préfab when clicked on it.

I created a small IDLE animation for this Prefab

A Random_Mouvement script was created to move the Prefab in the X and Z direction with random values

I created a horizontal Flip of my Préfab with function of the movement direction of my Préfab

I created Coroutines, so when I click on my Préfab, the Coroutine stops and the script Random_Mouvement is no longer active. All this reactivates when I drop the Préfab
		
	


0 comments

Loading...

Next up

[DEV. 0.3]​

[DEV. 0.1]

[DEV. 0.2]​

[DEV. 0.5]​

[DEV.06]

[DEV. 0.4]​

Have a good Boi

Why walk when you can jump?

An infected room from the second part of Cybel ! Are you up for some cleansing?

Let me introduce you to the new Mech line: Gendai Spec. Those are Mech that specializes in surprise attacks, covered operations, and stealth. They are equipped with melee weapons but one of Gendai's frames supports sniper rifles.