# Image display problem

**URL:** <https://forum.choiceofgames.com/t/image-display-problem/30484>\
**Category:** ChoiceScript Help\
**Created:** [September 10, 2017, 12:17am UTC](https://forum.choiceofgames.com/t/image-display-problem/30484 "2017-09-10T00:17:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![andymwhy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/andymwhy/32/34396_2.png) [@andymwhy](https://forum.choiceofgames.com/u/andymwhy)\
**Post date:** [September 10, 2017, 12:17am UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/1 "2017-09-10T00:17:15Z")

</div>

I’m having problems displaying images in my game. I’ve done it before, no problem, but now the images are appearing in the wrong place.

The code is like this:

```
*choice
  #View Staff
    [b]The current members of your team are:[/b]
    *line_break
    *image beatrice_img.JPG
    Beatrice Shallot: Psychologist
    *line_break
    *if thomas = "Wynne"
      *image wynne_img.JPG
    *if thomas != "Wynne"
      *image thomas_img.JPG
    ${Thomas} ${Jeffers}: Head Science Adviser
    *if (year <10)
      *line_break
      *image marlon_img.JPG
      Marlon Canter: Military Adviser
    *if (year >9)
      *line_break
      image art_img.JPG
      Art Johnson: Military Adviser
    *if (year <9)
      *line_break
      *image damien_img.JPG
      Damien McBride: Economics Adviser
    *if ((year >3) and (edward_dead = false))
      *line_break
      image edward_img.jpg
      Edward Stripe: Computer Technician
    *if ((year >3) and (karen_dead = false))
      *line_break
      image karen_img.jpg
      Karen Stripe: Key technician
    *if (year >12)
      *line_break
      image sally_img.JPG
      Sally Albright: Government Liaison Officer
    *if ((year >7 )and(year<11 ))
      *line_break
      image binny_img.jpg
      Binny Lumsden: Intern
    *if (year > 10)
      *line_break
      image binny_img.jpg
      Binny ${Lumsden}: Receptionist
    *page_break Return
    *goto stats_start

```

What should be displayed is an image, followed by their name and job title.  
This is then repeated for each person.

However, what I’m getting is this:

 ![image](https://global.discourse-cdn.com/choiceofgames/original/3X/a/1/a1e514c1e178a3e908039504f4d383fd0499a7ef.jpg)

(Click the image to see the full problem)  
Can anyone shed any light as to why and how to fix it?

Extra information:  
-This is in choicescript\_stats if that makes a difference.  
-The image is zoomed out and for reference only - it doesn’t appear that small in the game.

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [September 10, 2017, 12:51am UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/2 "2017-09-10T00:51:17Z")

</div>

Make certain you are using the latest version of ChoiceScript. When we changed some of the behind the scenes code to create a better experience for visually impaired users, it created a few bugs with display order. I believe this was one of the bugs.

---

<div class="post-metadata">

**Author:** ![andymwhy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/andymwhy/32/34396_2.png) [@andymwhy](https://forum.choiceofgames.com/u/andymwhy)\
**Post date:** [September 10, 2017, 3:30am UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/3 "2017-09-10T03:30:48Z")

</div>

That might explain it, but the error happens on both my PC and Dashingdon. The version I’m using is 1-2 months old.

I’ll update when I can get to a PC and check.

---

<div class="post-metadata">

**Author:** ![dashingdon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dashingdon/32/4070_2.png) [@dashingdon](https://forum.choiceofgames.com/u/dashingdon)\
**Post date:** [September 10, 2017, 5:56am UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/4 "2017-09-10T05:56:30Z")

</div>

I’ve recently updated [dashingdon.com](http://dashingdon.com) with the latest CS version so if that’s the issue it should be working on the site now.

---

<div class="post-metadata">

**Author:** ![andymwhy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/andymwhy/32/34396_2.png) [@andymwhy](https://forum.choiceofgames.com/u/andymwhy)\
**Post date:** [September 10, 2017, 12:48pm UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/5 "2017-09-10T12:48:34Z")

</div>

The problem is still on Dashingdon now. It’s going to be a little longer before I can check mine.

---

<div class="post-metadata">

**Author:** ![andymwhy](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/andymwhy/32/34396_2.png) [@andymwhy](https://forum.choiceofgames.com/u/andymwhy)\
**Post date:** [September 13, 2017, 12:09pm UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/6 "2017-09-13T12:09:33Z")

</div>

After updating Choicescript again, the problem is now corrected off-line. Dashingdon needs to be updated to the most recent Choicescript as well as the error is still happening there. (Last test, just now, after clearing the cache first).

---

<div class="post-metadata">

**Author:** ![dashingdon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dashingdon/32/4070_2.png) [@dashingdon](https://forum.choiceofgames.com/u/dashingdon)\
**Post date:** [September 13, 2017, 6:45pm UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/7 "2017-09-13T18:45:36Z")

</div>

Okay, I have updated files on [dashingdon.com](http://dashingdon.com) again with the latest from github. I didn’t know there had been another update but there were a few changes in the files that I saw. So hopefully this display issue is rectified. Let me know if not.

---

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dfabulich/32/198373_2.png) [@dfabulich](https://forum.choiceofgames.com/u/dfabulich)\
**Post date:** [September 13, 2017, 7:31pm UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/8 "2017-09-13T19:31:25Z")

</div>

Is there a good way for me to keep you notified of changes? Github has an RSS feed [https://github.com/dfabulich/choicescript/commits/master.atom](https://github.com/dfabulich/choicescript/commits/master.atom) but that may not help you if you don’t use RSS.

---

<div class="post-metadata">

**Author:** ![dashingdon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dashingdon/32/4070_2.png) [@dashingdon](https://forum.choiceofgames.com/u/dashingdon)\
**Post date:** [September 13, 2017, 7:43pm UTC](https://forum.choiceofgames.com/t/image-display-problem/30484/9 "2017-09-13T19:43:11Z")

</div>

I can subscribe to that RSS. Thanks!
