1
0
forked from noxious/client

Hair anim. adjustment

This commit is contained in:
2024-12-20 20:36:13 +01:00
parent 5eabb39ec8
commit a926de8466
2 changed files with 81 additions and 80 deletions

View File

@ -34,7 +34,8 @@ const imageProps = computed(() => ({
originY: [0, 6].includes(props.zoneCharacter.character.rotation ?? 0) ? 4.30 : 5.30,
flipX: isFlippedX.value,
texture: texture.value,
y: props.zoneCharacter.isMoving ? (scene.time.now % ANIMATION_MS < (ANIMATION_MS / 2) ? 1 : 0) : 0,
y: props.zoneCharacter.isMoving ? (scene.time.now % ANIMATION_MS < (ANIMATION_MS / 2) ? 0.5 : -0.5) : 0,
x: props.zoneCharacter.isMoving ? (scene.time.now % ANIMATION_MS < (ANIMATION_MS / 2) ? -0.5 : 0.5) : 0,
}))