For context, I want to make a dress up game. I have a data viewer grid with images, which are meant to be the clothes. I want the user to be able to click the image (aka a piece of clothing), so that the piece of clothing appears on a certain position on the screen, with a certain size. When I click the image again, I want the piece of clothing to disappear.
So far, I’ve made:
When Data_Viewer_Grid1 Item Click
row id
Do > Create Image At position x 100
y 100
in clothes
component
> Do
This does nothing. When I click the image in the data viewer grid, nothing happens. As for everything else I mentioned that I want to be able to do… well, I have no idea how to do it
I would recommend not moving an image but rather having placeholder image components where you need them and just changing their image’s value so that you display what you need when the user clicks a particular selection.
This demo I made might be helpful: Character Creation - #9 by tatiang. I recommend reading that topic to get an idea of the reason it’s set up that way.
Where do you load the images from? I looked at all the blocks and I don’t understand where you get them from, since you only mention ‘Image1’ yet you have 4 images.
Is there a method of displaying the clothes that isn’t by clicking the arrows (e.g. a scroll)? I’ve designed about 50 items of clothing and it would be tedious to have to click next/previous so many times.
→ What would the blocks look like if it is possible to make a scroll version?
You can use the if/else conditional block and the Any Image block to setup the logic for if your prev & next images are clicked to handle them in the Any Image Click event.