User Tools

Site Tools


move_camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
move_camera [2017/04/18 21:05] justinmove_camera [2018/03/16 09:46] justin
Line 2: Line 2:
 ---- ----
  
-Instantly moves the camera to the specified (X,Y,Z) [[coordinate]] or pre-defined [[camera position]] by name.+Instantly moves the camera to the specified (X,Y,Z) [[coordinate]] or named [[camera_positions|camera position]]. A target to aim the camera towards can optionally be specified. If using a [[camera_positions|camera position]] for the destination, this "look at target" will override the angle.
  
 +====Signature:====
 <code python> <code python>
 move_camera(destination, look_at_target) move_camera(destination, look_at_target)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|destination|Description.|[[Coordinate]] or [[String]]|Yes| +|destination|Destination coordinate or camera position.|[[Coordinate]] or [[String]]|Yes| 
-|look_at_target|Description.|[[Coordinate]] or [[Entity]]|No|+|look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 18: Line 19:
 ====Example:==== ====Example:====
 <code python> <code python>
-move_camera("camera_position", entity["Cat"])+move_camera("Inside House", entity["Cat"])
 </code> </code>
-//Results://+//Results:// The camera instantly moves to the location defined by the "Inside House" camera position and is aimed towards the "Cat" character.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Move Camera** function to ...+Use the **Move Camera** function to focus on certain characters/events during a cutscene or to indicate to the player that something in the scene has changed.
 </WRAP> </WRAP>
  
move_camera.txt · Last modified: 2021/04/21 18:35 by justin