[Legendary] How to make an animation?
-
And so I know that with eventData.getPartialTicks() in render2D you can somehow make an animation, but how to do it?
-
And so I know that with eventData.getPartialTicks() in render2D you can somehow make an animation, but how to do it?
@skidma wdym animation
-
@skidma wdym animation
@asutoboki-kun smooth rect animation
-
@asutoboki-kun smooth rect animation
@skidma still can't get it
-
@skidma still can't get it
@asutoboki-kun

ZERODAY B20.6 RELEASED | HYPIXEL ZOOMING & BOOMING – 01:59
— Intent Store(TargetHud health bar animation)
-
@asutoboki-kun

ZERODAY B20.6 RELEASED | HYPIXEL ZOOMING & BOOMING – 01:59
— Intent Store(TargetHud health bar animation)
@skidma uh
function animate(target, current, speed, partialTicks) { dif = target - current; if (speed < 0) { speed = 0; } if (speed > 1) { speed = 1; } factor = dif * speed * partialTicks; if (target > current) { current += factor; } else { current -= factor; } return current; } var shit; //...(the following lines of code will use Core) onRender2D: function(event) { shit = animate(target_here, shit, speed_here, event.getPartialTicks()); //too lazy since it's late rn }
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login