Skip to content

SetAnimTime

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

SetAnimTime

SetAnimTime:Void entity:Int32, time:Float32, anim_seq:Int32=0
Parameter Mode Type Default Description
entity In Int32 required The entity.
time In Float32 required Time in frames from the start of the sequence.
anim_seq In Int32 0 Sequence to pose, defaults to 0.

Description

Poses the entity at a point in time of a sequence without playing it. This is for animating by hand, for example to scrub through an animation with a slider or to show frame 10 of a pose. It also makes the given sequence the current one.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
CameraClsColor camera, 70, 100, 160
light = CreateLight()
RotateEntity light, 40, 30, 0

; Keys at frames 0, 10 and 20 move and turn a cube.
cube = CreateCube()
EntityColor cube, 240, 170, 60
PositionEntity cube, -2, 0, 6
RotateEntity cube, 20, 0, 0
SetAnimKey cube, 0
PositionEntity cube, 2, 1, 6
RotateEntity cube, 20, 180, 0
SetAnimKey cube, 10
PositionEntity cube, -2, 0, 6
RotateEntity cube, 20, 360, 0
SetAnimKey cube, 20
AddAnimSeq cube, 20

For frame = 0 To 39
	SetAnimTime cube, frame / 2.0
	RenderWorld
	Flip
Next

Media

SetAnimTime

Related Commands

AddAnimSeq, AnimLength, AnimSeq, AnimTime, ExtractAnimSeq, LoadAnimSeq, MD2AnimTime, SetAnimKey

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally