About Store Forum Documentation Contact



Post Reply 
How can I get AnimatedSkeleton from Extended Game.Item
Author Message
RedcrowProd Offline
Member

Post: #16
RE: How can I get AnimatedSkeleton from Extended Game.Item
Hi,

Yes there is, like i pointed it out before, in the exact same tutorial you were using, there is motion being set and used there.

if(Ms.bp(0))
{
MyMotion.set(obj.skel, AnimationAbility);
}

then you can do in update

MyMotion.updateAuto(1, 1);
06-27-2020 10:01 PM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #17
RE: How can I get AnimatedSkeleton from Extended Game.Item
Thansk it works !!! here is what I got after all of this

https://youtu.be/aljAzuTUc5s
06-28-2020 10:42 AM
Find all posts by this user Quote this message in a reply
Otolone Offline
Member

Post: #18
RE: How can I get AnimatedSkeleton from Extended Game.Item
Code:
class Weapon
{
Memc<Motion> reload_motions;
void animate()
{
  REPA( reload_motions)skel.animate( reload_motions[i], true); // apply reload animations
}
bool update()
{
  if(kb.b(KB_ENTER)
{
reload_motions.New().set(skelOfGun, "gun animation"); // add animation to container
}
// update all motion animations
     REPA(reload_motions)
     {
      if(!reload_motions[i].updateAuto(3, 3, 0.5))
      {
         reload_motions.remove(i); // remove motion after it has finished playing
        
      
      }
     }
}
}
I hope that helps!
04-28-2021 04:00 AM
Find all posts by this user Quote this message in a reply
Post Reply