CREATE YOUR WORLD
Players & Characters: Advanced

FPS/TPS View Example

3min

These are examples of setting FPS/TPS control.

Document image


STEP 1 : Fixing Camera Position

To fix the camera in TPS, go to ZepetoPlayers > ZepetoCamera > Zoom and set the Min and Max value to same.

Set the Look Offset Y value to 0.1.

Document image


To fix the camera in FPS, go to ZepetoPlayers > ZepetoCamera > Zoom and set the Min and Max value to -1.

Set the Look Offset Y value to 0.1.

Document image


STEP 2 : Scripting

Add a script that applies the rotation of the camera to the rotation of the character.

Add a script to correct the rotation of the character by receiving the camera rotate input (OnDragEvent).

TypeScript