Hi Figma community,
I am trying to create an interaction quite like the “swipe” interaction of Tinder. However, in my case, it is a game, and depending on whether you swipe left or right (and whether or not this corresponds to the correct answer) you get a +1 point or -1 point.
I have created a frame called “Point” inside the swipeable cards (the cards are a component). “Point” is 100% visible in the swiped version (after drag), and 0% visible in the static version (before drag). I am testing this on three different cards - 1 image and 2 videos.
I had several problems:
- 1st Attempt: I created two boolean variables “+1” and “-1”. And attached these to the “+1” and “-1” labels accordingly on each card. This worked for a while, but at some point it seemed to be broken and I could not really understand what did not work. It seemed to me, it only worked on the image, but I could not attach the variables on the video cards.
- Current: Then I attempted to attach the variables on the main card component, and republished. Currently this seems to work on the videos but not the image.
Help! Is this a bug? What should I do instead to get all the cards functioning?