cassius Posted April 17, 2014 Share Posted April 17, 2014 If my character falls from a great height it dies and I use the die animation following which the game ends. Problem is it ends before the animation can get finished.How can I delay it? Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
DudeAwesome Posted April 17, 2014 Share Posted April 17, 2014 just execute the game over code on the last frame of the animation Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Rick Posted April 17, 2014 Share Posted April 17, 2014 Ideally you will want to have some sort of callback/event system in your animation code for non looping animations. That way you can define a function to be called when a non looping animation is complete (in your case the dying animation) so that you can do other things inside of these functions, like end your game. Quote Link to comment Share on other sites More sharing options...
cassius Posted April 17, 2014 Author Share Posted April 17, 2014 delete Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
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.