Original message (verbatim)
'Animation key exists: ' + key
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
Calling anims.add(key, animation) directly to register an animation whose key already exists in the global AnimationManager (a different path from the create duplicate warning).
Typical cause
add() first checks this.anims.has(key); when the key is taken it only warns and returns this, without overwriting the old animation instance, so the new config does not apply.
Step-by-step fix
- Before registering, check this.anims.exists(key) to see whether the key is already used.
- To replace an animation, call this.anims.remove(key) first, then register again.
- Animations are global and are not cleared on scene restart; avoid adding the same key during scene init.
Source links
Per-entry sources and capture date are listed at /sources#P17.
Related errors
Related Phaser errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00