Function _IrrSetNodeAnimationFrame

au3Irr2

au3Irr2 Function Reference

_IrrSetNodeAnimationFrame

Set the current frame number being played in the animation.

#Include <au3Irrlicht2.au3>
_IrrSetNodeAnimationFrame($h_Node, $f_Frame)

 

Parameters

$h_Node Handle to a character scene node.
$f_Frame Frame number to play

 

Return Value

Success: True
Failure: False

 

Remarks

None.

 

Related

_IrrGetMesh, _IrrAddMeshToScene, _IrrGetMeshFrameCount

 

Example


#include "au3Irrlicht2.au3"

Global $hMD2Mesh, $hMeshTexture, $hSceneNode

_IrrStart()

$hMD2Mesh = _IrrGetMesh("./media/zumlin.md2")
$hMeshTexture = _IrrGetTexture("./media/zumlin.pcx")
$hSceneNode = _IrrAddMeshToScene($hMD2Mesh)
_IrrSetNodeMaterialTexture($hSceneNode, $hMeshTexture, 0)
_IrrSetNodeMaterialFlag($hSceneNode, $IRR_EMF_LIGHTING, $IRR_OFF)

_IrrSetNodeAnimationFrame($hSceneNode, 600)

_IrrAddCamera(50, 0, 0, 0, 0, 0)

While _IrrRunning() And Sleep(10)
    _IrrBeginScene(240, 255, 255)
    _IrrDrawScene()
    _IrrEndScene()
WEnd

_IrrStop()