Skip to content

Commit 368d752

Browse files
committed
UPBGE: Fix timer documentation.
The life or time value is based on 50fps frame which corespond to time * 1/50 seconds.
1 parent 2f981e5 commit 368d752

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ base class --- :class:`SCA_IObject`
468468

469469
.. attribute:: life
470470

471-
The number of seconds until the object ends, assumes 50fps.
472-
(when added with an add object actuator), (read-only).
471+
The number of frames until the object ends, assumes one frame is 1/50 second (read-only).
473472

474473
:type: float
475474

doc/python_api/rst/bge_types/bge.types.KX_Scene.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ base class --- :class:`PyObjectPlus`
145145
:type object: :class:`KX_GameObject` or string
146146
:arg reference: The (name of the) object which position, orientation, and scale to copy (optional), if the object to add is a light and there is not reference the light's layer will be the same that the active layer in the blender scene.
147147
:type reference: :class:`KX_GameObject` or string
148-
:arg time: The lifetime of the added object, in frames. A time of 0 means the object will last forever (optional).
148+
:arg time: The lifetime of the added object, in frames (assumes one frame is 1/50 second). A time of 0 means the object will last forever (optional).
149149
:type time: integer
150150
:return: The newly added object.
151151
:rtype: :class:`KX_GameObject`

0 commit comments

Comments
 (0)