#animation in game

36 messages · Page 1 of 1 (latest)

worldly prism
#

still, Don't ping staff with questions.
I'll answer after I finish what I do right now...

worldly prism
#

Yes, but you might have to work on that a bit.

The library allows transparent animations but does not detect the built-in ones.

You can create an animation where you only animate the head and the other parts will be see-through.

worldly prism
#

Sorry for not replying immediately, I have more important stuff to do.

Maybe I add it to the example mod.

Do you use Fabric or Forge?

worldly prism
#

You was timed out by me.
After asking you to stop pinging me multiple times, you just kept pinging me. Next waring may be a ban.

If you ping me, I just read your message but if I can not answer (because I'm in work), I just forget it.
Also I definitely don't like the ping and delete the message immediately strategy. It just cause confusion and doesn't remove the ping actually.

#

If you use KeyframeAnimation (probably you do), you can just modify the animation and disable parts/what you want

Disabled parts won't override the default animation...

                //Use setAnimation to set the current animation. It will be played automatically.
                KeyframeAnimation animation = PlayerAnimationRegistry.getAnimation(new Identifier("modid", "waving"));
                assert animation != null; //meh

                var modified = animation.mutableCopy(); //You can't modify existing animations, but you can modify a copy of those
                modified.head.x.setEnabled(false); //You can disable head animation
                modified.head.y.setEnabled(false);
                modified.head.z.setEnabled(false);
                modified.head.pitch.setEnabled(false);
                modified.head.yaw.setEnabled(false);
                modified.head.roll.setEnabled(false);
                
                var newAnimation = modified.build(); // Use the build function to make another immutable animation
                animationContainer.setAnimation(new KeyframeAnimationPlayer(newAnimation));

This is https://github.com/KosmX/fabricPlayerAnimatorExample but modified one class...

#

Of if you want to change it low-level, you can make implement some other part of the API:

public class TransparencyLayer extends AnimationContainer<IAnimation> {
    public TransparencyLayer(IAnimation animation) {
        super(animation);
    }

    Set<Pair<String, TransformType>> disabledParts = Set.of(
            new Pair<>("head", TransformType.POSITION),
            new Pair<>("torso", TransformType.ROTATION),
            new Pair<>("rightArm", TransformType.BEND)
    );

    @Override
    public Vec3f get3DTransform(String modelName, TransformType type, float tickDelta, Vec3f value0) {
        if (disabledParts.contains(new Pair<>(modelName, type))) {
            return value0;
        } else {
            return super.get3DTransform(modelName, type, tickDelta, value0);
        }
    }
}

//Then you can just
{
    animation.setAnimation(new TransparencyLayer(animation));
}
worldly prism
#

Probably
Fine-tuning replaced default animations to make them really good is a lot of time and right now I don't have that.

merry cape
#

Dude just make it yourself then. Kos already said they don't have time.

tulip harness
#

Do you already know the basics of programming? of mixins? if not, first try to study it before

#

Asking people to do things for you won't solve anything unless you want to pay a programmer to do it.

tulip harness
worldly prism
tulip harness
#

My mod is not ready yet, I will let you know when I have a download

#

The mod in the video is my mod and yes it is not ready yet

tulip harness
#

I'm busy, I'll answer you as soon as possible.

livid glacierBOT
#

dynoSuccess DrAlpha#9049 has been warned. || This is your last warning: Don't ping people if they didn't ask! You're maybe free but they may work/sleep. And if you ping someone, definitely don't delete the message!

tulip harness
#

he's probably just a needy child

tulip harness
#

So what's the point of spamming pings?

tulip harness
#

Yes I am the owner of the mod, but as I said, it is not ready, please stop insisting.

#

When I'm available, it could take days, or even months, be patient, I have things to do.

#

No, like I said, I'm busy.

#

Search the internet for Java, learn programming, then read the fabric documentation

#

It's not complicated when you already know how to program

#

And I'm just answering you kindly, if you don't know the answer to how to make a mod, it's because you don't know how to program, so you should start from there

#

So why the question?

#

using mixins

#

No, this is a fabric feature

#

No, thanks

#

When it's released.

#

No, thanks. Stop insisting.

#

I'm saying you are not allowed to use my video in your video

#

When I release the mod, you can record as many videos as you want and use as many videos as you want, but while I'm still producing, no.

#

🤦 Okay man @worldly prism sorry to ping you but please.

#

apparently he himself saw how inconvenient he was being and deleted the messages, what a kid

worldly prism
small oasis