Game Development Reference
In-Depth Information
1. Rename our current Player game object to PlayerSprite .
2. Create a new game object named Player .
3. Click and drag the PlayerSprite game object to be a child of the Player game ob-
ject.
4. Reset all the Transform pane's values of both the Player and PlayerSprite game
objects (otherwise, everything will be an offset).
5. Remove the MovementController , RigidPhysics2D , and Box Col-
lider scripts from the PlayerSprite game object and add them to the Player
game object again.
Note
Also, be sure to update the options of the physics components and the bounds of the box
collider. This is because they are not on the sprite object; they no longer automatically re-
cognize the regions they need to work with but just tweak them until they are correct.
The Player ( Controller ) game object view will look like the following screenshot:
Search WWH ::




Custom Search