Skip to main content
Question

How to create a series of variables I can cycle through? (Rather than choosing a specific one)

  • December 27, 2022
  • 1 reply
  • 382 views

Alexander_Johansson

Hello,

So basically I’m designing a games interface where I need to be able to switch between a number of maps (E.g. House, Tunnel, Barge) upon mouse click. Problem is, it seems as if Figma only has the option to go to a specific variable rather than cycle through all of them. Here’s an example of what I mean:

What I want:
Variables (1, 2, 3)
On mouse click, if Variable = 1, Navigate to 2
OR
On mouse click, cycle Variable

What I’m currently getting:
Variables (1, 2, 3)
On mouse click, set Variable to 2

There doesn’t appear to be an ability to change the variable back/alternate unless it’s manually done in the editor. Is there some kind of interaction that can be used or does this function/feature not exist within the tool?

Thanks for your time!

This topic has been closed for replies.

1 reply

  • 0 replies
  • January 26, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings