Jump to content

Recommended Posts

Posted

So I have the reload animation, and I know the start and end frames.

 

My question is how do I know when the reload animation is completed? How do I check for this?

 

Current Code

else if(aniState == reloading)
{
	aniStart = weapon->reloadStart;
	aniEnd = weapon->reloadEnd;

	world->frameWerk.GetRenderer().SetFarDOFRange(Vec2(0,50));
	world->frameWerk.GetRenderer().SetFarDOFStrength(200);
	world->frameWerk.GetRenderer().SetFarDOF( true );

	frame=AppTime()/30.0;
}

frame=fmodf(frame,aniEnd-aniStart)+aniStart; 

Animate(playerBody,frame,1.0,0,true);

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Posted

Anyone?

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

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.

×
×
  • Create New...