cassius Posted April 23, 2010 Posted April 23, 2010 How do I make an anim perform 1 sequrnce then stop? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
ZioRed Posted April 23, 2010 Posted April 23, 2010 I think you could simply try to skip the Animate() call when the current frame reaches (or exceeds) the last frame. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com
Marleys Ghost Posted April 23, 2010 Posted April 23, 2010 For single animations I simply set a flag and do something along these lines: Pseudo code: If Play_RequiredAnim = 1 Animate(Entity,Frame,1,0,1) Frame = Frame + 0.1 'alter this value to adjust playback speed If Frame > Last Frame Play_RequiredAnim = 0 EndIf EndIf Frame : The start frame of the required anim sequence Last Frame : The last frame of the required anim sequence Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head"
cassius Posted April 23, 2010 Author Posted April 23, 2010 Thanks for replies. I thought there might be a built in way of doing single shot anims as in Blitz 3d but I will use the code you suggest. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.