forked from noxious/client
Anim fix
This commit is contained in:
parent
ec3335f4f4
commit
90b722b07c
@ -86,7 +86,7 @@ watch(
|
|||||||
|
|
||||||
const charTexture = computed(() => {
|
const charTexture = computed(() => {
|
||||||
if (!props.character?.characterType?.sprite) {
|
if (!props.character?.characterType?.sprite) {
|
||||||
return 'idle_left_down'
|
return 'idle_right_down'
|
||||||
}
|
}
|
||||||
|
|
||||||
const rotation = props.character.rotation
|
const rotation = props.character.rotation
|
||||||
@ -94,9 +94,9 @@ const charTexture = computed(() => {
|
|||||||
const action = props.character.isMoving ? 'walk' : 'idle'
|
const action = props.character.isMoving ? 'walk' : 'idle'
|
||||||
|
|
||||||
if (rotation === 2 || rotation === 4) {
|
if (rotation === 2 || rotation === 4) {
|
||||||
return `${spriteId}-${action}_left_down`
|
return `${spriteId}-${action}_left_up`
|
||||||
} else if (rotation === 0 || rotation === 6) {
|
} else if (rotation === 0 || rotation === 6) {
|
||||||
return `${spriteId}-${action}_right_up`
|
return `${spriteId}-${action}_right_down`
|
||||||
}
|
}
|
||||||
|
|
||||||
return `${spriteId}-${action}_left_down` // Default fallback
|
return `${spriteId}-${action}_left_down` // Default fallback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user