#why does my Animation stuck ingame?

156 messages · Page 1 of 1 (latest)

primal birch
#

Can you describle the issue in text too

#

Next are you using a RP AC?

oblique holly
#

sorry i forgot what ac is

primal birch
#

Animation Controller

oblique holly
#

so i made this Animation for my wip hippo

#

this is how it looks like in block bench

#

but when i spawn this mob in game the Animation stuck in one deriction

oblique holly
#

{ "walk": "query.modified_move_speed" },

#

but no im not using any ac for this Animation

#

lemme make one more video

primal birch
#

change query.modified_move_speed to >= 0.01

#

Right now you're feeding the MATH of modified move speed in to the animations NOT toggling it on/off

#

you need a == <=>= or something to toggle when it's a math based query

#

So in this case If modified_move_speed is faster than or equil too ">=" 0.01 then play animation.

#

Right now you have it as Take the speed of entity x and play the animation at x speed

oblique holly
#

{ "walk": "query.modified_move_speed>=0.01" },

#

like this?

#

thats so Interesting

primal birch
#

yep

oblique holly
#

hmm its still stuck

primal birch
#

If they are a big big entity move the number up so 0.02

#

Is it looped

#

If you're not using a AC you have to loop them or do it a different way

#

You should be using an AC

oblique holly
primal birch
#

An AC is a state machine

#

yeah change the animation to looped

#

but it wont loop great

#

you need the AC to tell the animations when to idle, sleep, sit, walk, run... and blend between those

oblique holly
oblique holly
#

ima try

primal birch
#

I see, because they are feeding the math directly in

#

Show your animation

#

Alot of mojang animations have math in their keyframes

#

I don't suggest you do that. It's painful to learn. I suggest you use keyframes which are much easier

oblique holly
#

i rly dont use math buttt

#

these time i used math

#

and it looked sooo goood in blockbench

#

lenne send the file

#

its called cow bc i forget to change XD

#

the Body should also move like in the gif but its also stuck

primal birch
# oblique holly

This isn't a animation {"type":"application/json","uri":"file:///data/user/0/com.discord/cache/temp_5115182619180971262.json","name":"geometry.cow_geometry.quadruped.animation.json"}

oblique holly
#

how can i send this

primal birch
#

open the json file and post the json here with to start and to end it

oblique holly
#

discord dont let me

#

oh wait i can Screenshot XD

primal birch
#

Then post the json file not what ever the above was

oblique holly
#

does this work

#

for you

primal birch
#

no thats not a animation file

oblique holly
#

ik but look

#

i sendet this

#

hippo.animations.json

primal birch
#

yeah look at the size difference

#

Where are you getting that file from?

oblique holly
#

from my Download foldee

#

folder

primal birch
#

Why can't you post the json directly?

#

post a screen cap then

oblique holly
#

im sorry what is a screen cap im rly sorry

primal birch
#

A picture of your screen

oblique holly
primal birch
#

I mean of the json

oblique holly
#

what is this

#

no

#

ohhhh omg im so dump

#

it also say i cant do that

#

lemme try sometin

#

{
"format_version": "1.8.0",
"animations": {
"animation.hippo.walk": {
"loop": true,
"anim_time_update": "query.modified_distance_moved",

primal birch
#

take this out "anim_time_update": "query.modified_distance_moved",

#

why do you have it?

oblique holly
#

i tought this is needed so the Animation between sleep and walk can Update

#

is it it?

#

im rly not good in this im sorry lmao

#

{
"format_version": "1.8.0",
"animations": {
"animation.hippo.walk": {
"loop": true,
"bones": {

#

like this?

#

or without the coma

#

after loop true

primal birch
#

change it in blockbench and reexport it don't change it in json

#

until you learn json

#

rules*

#

You change between walk and sleep with a AC or by query

#

Have you watched my guides?

oblique holly
#

yes

#

i use query bc its easier

#

for me

primal birch
#

for real

#

I still do whenever I can

oblique holly
#

but for the sit Animation i need to use sit

#

bc if i used query my entity was sitting and moveing at the same time XD

primal birch
#

depends how you do sit

#

lots of ways to do it

#

There is a sit behavior

#

but I rarely use that

#

So you need to understand the animations are FAKE

#

This is all client side

#

The server controls everything. In the behaviors. Right

#

Then the Animations react, animations dont DO anything other than visually

#

They don't move the entity.

oblique holly
#

yea

primal birch
#

it's all visual right

#

So you need a behavior to tell it to sit

oblique holly
#

i made it thank your i help

primal birch
#

or you need to use some variant or something to have stats

oblique holly
#

how do i delete this

#

in blockbench

primal birch
#

this chat?

oblique holly
#

no

primal birch
#

It's a file on your computer so you delete that file

primal birch
#

I think you said it was in downloads

oblique holly
#

no i mean the anim.uodate

#

Update

primal birch
#

oh sorry hold on

oblique holly
#

all good im so happy that we have such nice ppl here like you

primal birch
#

right click the anmation and do properties

#

longhold on mobile

oblique holly
#

ye

#

ok and then

primal birch
#

export it to your resource pack and test it in game

oblique holly
#

wait

#

there is nothing

#

ohhhhh nvm bruh

#

i found it

#

lemme test

#

its still stuck

primal birch
#

You are sure you're over writting the Resource pack animation each time

oblique holly
#

yes

primal birch
#

Try turning off the animation and seeing what you get

#

Do you have any error logs

oblique holly
#

lemme se

primal birch
#

It looks like it is playing just not animated for walking well. Please show the keyframes in blockbench

oblique holly
oblique holly
#

idk if you find here any Problem bc i didnt : thats a leg bone
"leg0": {
"rotation": ["math.cos(query.anim_time * 38.17) * 80.0", 0, 0]

#

it dosent make sense why does it stuck

#

ingame

primal birch
#

As I advised above I'd use keyframes and not math for your animations when you're starting out.

primal birch
#

Watch my guide above on doing this. It's the easy way, then you can make it better once you learn the next few steps. Mainly RP AC's and states

oblique holly
#

im so thankfull thank you very much ima do this thank you for your time is this video about keyframe Animation?

primal birch
#

yep and pivot points and such

oblique holly
#

@primal birch thank youu sooo much this is sooooo much better bblike your the best man

#

sorry for ping lol

primal birch
#

!close