Game Object: timeOffset

timeOffset
  • gets/sets the amount of time the child's reaction is offset from the parent.

Type:

  • float number
Note:
  • Doesn't work with the Parent Actuator.
     
  • Parent with Ctrl P
     
  • Slow Parent button must be enabled (on the Child object).
Sample Code

################## get the child's time offset

# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the cameras
camList = scene.cameras

# get camera
# my camera is named RaceCam_1

cam = camList["RaceCam_1"]

# get the time offset
time = cam.timeOffset

Sample Code

################## set the child's time offset

# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the cameras
camList = scene.cameras

# get camera
# my camera is named RaceCam_1

cam = camList["RaceCam_1"]

# set the time offset
cam.timeOffset = 10.0