Animate.htm 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>Animate entity[,mode][,speed#][,sequence][,transition#]</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. entity - entity handle <br />
  13. <br />
  14. mode (optional) - mode of animation. <br />
  15. 0: stop animation <br />
  16. 1: loop animation (default) <br />
  17. 2: ping-pong animation <br />
  18. 3: one-shot animation <br />
  19. <br />
  20. speed# (optional) - speed of animation. Defaults to 1. <br />
  21. sequence (optional) - specifies which sequence of animation frames to play. Defaults to 0. <br />
  22. transition# (optional) - used to tween between an entities current position rotation and the first frame of animation. Defaults to 0.
  23. </td>
  24. </tr>
  25. </table>
  26. <h1>Description</h1>
  27. <table>
  28. <tr>
  29. <td>
  30. Animates an entity. <br />
  31. <br />
  32. More info about the optional parameters: <br />
  33. <br />
  34. speed# - a negative speed will play the animation backwards. <br />
  35. <br />
  36. sequence - Initially, an entity loaded with LoadAnimMesh will have a single animation sequence. More sequences can be added using either LoadAnimSeq or AddAnimSeq. Animation sequences are numbered 0,1,2...etc. <br />
  37. <br />
  38. transition# - A value of 0 will cause an instant 'leap' to the first frame, while values greater than 0 will cause a smooth transition.
  39. </td>
  40. </tr>
  41. </table>
  42. <br>
  43. <a target=_top href=../index.htm>Index</a><br>
  44. <br>
  45. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Animate&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  46. </html>