Swipe pre defined area to reveal label underneath
Asked Answered
U

1

0

Hey everyone,

I have a scene with 3 labels in a VboxContainer. When the scene first loads I want the first label to be visible and the other 2 to be not visible. I would like, for the user to be able to see the 2nd label, to have the user swipe or drag along where the 2nd label is to reveal it. Once the 2nd label is visible the process would repeat for label 3. Is this possible? If so would anyone be able to help me with it? I am a noob at Godot so feel to talk to me like I'm stupid lol.

Thank you!!

Underthrust answered 25/3, 2023 at 23:18 Comment(0)
M
0

To get you started:

You need to keep track of which Label is visible with a variable, or explicitly check their visibility properties each time you change those. To change a Label's visibility, use it hide() or show() method, or set its visible property to true or false.

You need to detect a swipe or drag in the VboxContainer to perform the visibility change.

Do you know how to program/script?

Which version of Godot are you using?

Millar answered 26/3, 2023 at 11:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.