Jump to content

c++ problem


cassius
 Share

Recommended Posts

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?

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

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...