What X Are You?
Spins through options above your head and stops on one, for example a star sign or a persona. You give up to six options, as text, pictures or both.
Game engines, physics, quizzes, leaderboards, and the UI controls that tie it together.
Made with this blockInputs
item1textstringThe text description for the first item
item2textstringThe text description for the second item
item3textstringThe text description for the third item
item4textstringThe text description for the fourth item
item5textstringThe text description for the fifth item
item6textstringThe text description for the sixth item
defaultTextstringThe title of the What X Are you component.
item1imagetextureAn image for the first item in the What X Are You lens block.
item2imagetextureAn image for the second item in the What X Are You lens block.
item3imagetextureAn image for the third item in the What X Are You lens block.
item4imagetextureAn image for the fourth item in the What X Are You lens block.
item5imagetextureAn image for the fifth item in the What X Are You lens block.
item6imagetextureAn image for the sixth item in the What X Are You lens block.
randomizerTypeintAn integer that determines the following options for the style of randomizer:
3 values
- 0
- only text is shown, useful for prompts where only text is required.
- 1
- only images are shown , useful for prompts where only images are required.
- 2
- both text and images are shown.
promptTextstringThe text initially shown above the user's head to prompt an interaction.
Functions
startvoidcalled to trigger the "What X Are You?" block's randomized spinning behavior. Do not use this function unless triggering the "What X Are You?" block from a touch or mouth event.
More in Games & Interactivity
- JoystickAdds an on-screen joystick that you drag to move or steer something in the Lens. Choose where it sits, how big it is, and how it looks.
- LeaderboardSaves the scores from your Lens and shows them in a ranked list. You can compare with friends and with people around the world.
- Physics2DMakes 2D objects fall, collide and bounce off each other like real things. It draws nothing itself, so the Lens needs something else to show the objects.
- QuizRuns a quiz on the screen, with buttons or a tilt of your head to answer. Say what the quiz is about, for example American history or your personality type.
- Tic Tac ToeAdds tic tac toe on a 3D board, for one player against the Lens. Choose the look of the board and the two 3D pieces.
- Turn ManagerRuns a two player game that you send to a friend. You take a turn, then your friend opens the Lens and takes the next one.
- UI ButtonAdds a button you tap on screen. You choose the label, the color, the shape, pill or circle, and where it sits on the screen.
- UI Progress BarShows a bar that fills up to track progress, for a countdown, a timer or a level. You choose the size, the colors and up to three checkpoint marks.
- UI SliderAdds a bar you drag to set a value, for example how strong an effect is. The bar is horizontal, and you choose its size and colors.
- Video Control UIPlays your videos full screen, one after another, with play, pause and a bar you can drag. You add up to five videos.
