feedback2 WK: enemies play their attack clip once per attack at its own speed, then their Move clip (no stretching over the attack interval; GitHub #58)

This commit is contained in:
sganggs committed 2026-10-04 02:49:33 +08:00
1 parent 0623336f30
commit 68da23e8ed
3 files changed
+136 -12

No files matched your search

+2
View File
@@ -460,6 +460,8 @@ export class UnitView {
try {
actor = new SpineActor(data, entry);
actor.setSkillIndex(this.info.skillIndex);
// enemies play their attack clip once per attack, then walk on (GitHub #58: the sim stands them for that clip)
actor.clipPerAttack = this.isEnemy;
} catch (err) {
console.warn('[render] spine build failed', id, err?.message || err);
this._releaseEntry(entry);