BART with array of pictures instead of one picture inflating


Author
Message
Elo
Elo
Elo
posted 8 Years Ago HOT
Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)
Group: Forum Members
Posts: 5, Visits: 31
Hi,
I would like to replace part of the code (the part that makes the iimage increasing in size) with an array of images (I want to have several images where, for example, in the first image the balloon is small, in the second it is a little bigger etc. to have 128 images). I will create this images myself, I just need a way to navigate through them.

This is my first attempt, which doesn't work but will probably give you a better idea of what I'm trying to accomplish:


<picture image_name_1>
/ items = ("body_1.jpg)
...
</picture>

<picture image_name_2>

/ items = ("body_2.jpg)
...
</picture>

...

<picture image_name_128>
/ items = ("body_128.jpg)
...
</picture>
...
<trial init>
...
if (trial.choice.response == "pumpbutton") {
  picture.current = picture["image_name_"+values.totalpumpcount]
...
</trial>

Perhaps there is a better way of doing this without needing to make 128 picture elements, but adding more elements in the items array?

Thank you very much for your help,

Eleonora 





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Elo - 8 Years Ago
Dave - 8 Years Ago
Elo - 8 Years Ago
                 + x [quote] [b] Elo - Friday, June 9, 2017 [/b] +...
Dave - 8 Years Ago
                     + x [quote] [b] Dave - Friday, June 9, 2017 [/b] +...
Elo - 8 Years Ago
                     + x [quote] [b] Dave - Friday, June 9, 2017 [/b] +...
Elo - 8 Years Ago
                         + x [quote] [b] Elo - Friday, June 23, 2017 [/b] +...
Dave - 8 Years Ago
                             + x [quote] [b] Dave - Friday, June 23, 2017 [/b] +...
Elo - 8 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search