#Sync animation speed to walk speed
1 messages · Page 1 of 1 (latest)
Yes, check out vanilla entities for examples. They define a variable called variable.tcos0 which changes depending on movement speed, and that variable is used in animations
From vanilla_rp/entity/skeleton.v1.0.entity.json:
"scripts": {
"pre_animation": [
"variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;"
]
},```
can u explain more? i dont rlly get it :c