# Changing character with sprites is not working

**URL:** <https://narrat.discourse.group/t/changing-character-with-sprites-is-not-working/265>\
**Category:** Help\
**Created:** [26 September 2024 13:31 UTC](https://narrat.discourse.group/t/changing-character-with-sprites-is-not-working/265 "2024-09-26T13:31:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arseniio](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/arseniio/32/353_2.png) [@Arseniio](https://narrat.discourse.group/u/Arseniio)\
**Post date:** [26 September 2024 13:31 UTC](https://narrat.discourse.group/t/changing-character-with-sprites-is-not-working/265/1 "2024-09-26T13:31:03Z")

</div>

Just started to developing my game, filled up a characters.yaml and game.narrat and find out that on this change of lines  
`talk Nadya idle "..."`  
`talk lesha idle "..."`  
Only the first character image appears on screen, that’s not a problem with the image since if i swap the entire line that starts with `idle: nadya\sp1.png` image from lesha would load just fine

Character defined as:

```auto
  Nadya:
    name: "НАДЕЖДА ТЕМНОВА"
    style:
      color: green
    sprites:
      idle: nadya\надяСпокойная1.png

  lesha:
    name: "АЛЕКСЕЙ ЗАХАРОВ"
    style:
      color: green
    spriters:
      idle: lesha\ЛёшаСпокойный1.png

```

Browser console after executing `document.getElementsByClassName("dialog-picture")` shows that while Nadya’s dialogue is last image box appears on page, but after changing to lesha’s line it returns empty HTMLcollection  
And dev tools shows that his image does not started to load:  
 ![zen_GiNT1TVEqB](https://global.discourse-cdn.com/free1/uploads/narrat/original/1X/f4030fa787986a7def52dc10e9740095cc9a77ce.png)

Tried:

- moving images out of folders(from `img/characters/nadya` to just `img/characters/`)
- swapping character images kinda works but Lesha in any case unable to load it’s image

Browser: tested on Zen(Firefox) and Yandex(Chromium), both having same issue  
OS: Windows 10 21H2 19044.4894  
`npm list:` [https://pastebin.com/gH6dX7JK](https://pastebin.com/gH6dX7JK)

---

<div class="post-metadata">

**Author:** ![Noph](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/noph/32/476_2.png) [@Noph](https://narrat.discourse.group/u/Noph)\
**Post date:** [26 September 2024 15:01 UTC](https://narrat.discourse.group/t/changing-character-with-sprites-is-not-working/265/2 "2024-09-26T15:01:11Z")

</div>

You have a typo in lesha’s config above, `spriters` instead of `sprites`, is it the same in your files ?

---

<div class="post-metadata">

**Author:** ![Arseniio](https://yyz2.discourse-cdn.com/free1/user_avatar/narrat.discourse.group/arseniio/32/353_2.png) [@Arseniio](https://narrat.discourse.group/u/Arseniio)\
**Post date:** [26 September 2024 16:51 UTC](https://narrat.discourse.group/t/changing-character-with-sprites-is-not-working/265/3 "2024-09-26T16:51:00Z")

</div>

aw yes that was the problem, but that seems a little bit like a flaw that engine not threw an exception, thanks you!
