12/19/2023 0 Comments Whitebox learning unity web playerDrag the FPSController prefab to Player in the Hierarchy window.In the Project window, click the search bar, then type FPSController.You will also give your Player a Collider, which will allow your player to interact with other 3D Objects. Now you need to give your Player the ability to move around in your game. In the Inspector windows, set the Y Position to 1 in the Transform component.In the Hierarchy window, right-click Main Camera, then click Rename.Instead you will give the Main Camera a Character Controller and a Collider. Your game will have a first person view, so you don’t have to make a 3D Object for the player. Then set the X Rotation to 90 and the Y Rotation to 45.Also in the Transform component, set the Y scale to 0.1.In the Inspector window, set the Y and Z Position to 4 in the Transform component.In the Hierarchy window, right-click Cylinder, then click Rename.In the Inspector window, click the little gear in the top right corner on the Transform component, then click Reset.Hover your mouse over 3D Objects, then click Cylinder. In the Hierarchy window, click the Create button.In the Hierarchy window, right-click Plane, then click Rename.It’s good practice the reset a game object after creating it. Hover your mouse over 3D Objects, then click Plane. You will make a ground, a coin, and set up your player. Now that your project is set up, you need to create the 3D objects that will make up your game. Click the Characters asset package, then click the Done button. In the Project Name field, replace “New Unity Project” with “Coin Collector”.After the Project window pops up, click the New button to create a new project.First you need to set up your project in Unity: This tutorial will teach you how to make a simple game with a coin that will disappear when your player touches it, just like in Super Mario Bros. You can do this tutorial to add onto the basic FPS you made in the FPS tutorial. You should do the Trigger tutorial before doing this one if you haven’t already. Pickup a coin tutorial teaches us how to make game objects that players can pick up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |