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
|