This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reset_camera_at_speed [2017/05/02 16:27] – justin | reset_camera_at_speed [2021/04/21 18:42] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Resets the camera to the default position/ | + | Resets the camera to the default position/ |
+ | ====Signature: | ||
<code python> | <code python> | ||
reset_camera_at_speed(speed) | reset_camera_at_speed(speed) | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |speed|Speed at which to reset the camera (in voxels/sec).|[[Decimal]]|Yes| | + | |speed|Speed at which to reset the camera (in [[voxel|voxels]]/second).|[[Number]]|Yes| |
====Example: | ====Example: | ||
- | < | + | < |
- | reset_camera_at_speed(120) | + | reset_camera_at_speed(120); |
</ | </ | ||
// | // | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Reset Camera At Speed** | + | Use the **Reset Camera At Speed** function after showing the player an event that has occurred elsewhere or upon the ending of a cutscene to reset the camera back to the player. |
</ | </ | ||