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.5]​

[DEV. 0.4]​

[DEV. 0.3]​

[DEV. 0.2]​

[DEV. 0.1]

[DEV.06]

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

What you all think

Sometimes the suction cup get sticky. Small animation I made in Blender after doing my tutorial on picking up/dropping objects in animations. Crate model by jQueary (https://sketchfab.com/3d-models/game-ready-sci-fi-crate-d98deca6…).