Combined positioning and visibility using a timer

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
lemo_fri
Posts: 8
Joined: Thu Jun 29, 2023 12:34 pm

Hey,

I want to combine a timer with a visibility function and a new positing of an element.

1. When I click on a button, there should popup an icon that is moving from the center to the left bottom corner.

2. After reaching the corner, the icon should vanish.

I came to the point, where I could do 1. or 2. but not in combination. The movement part is easy but when I use a timer to make it vanish after a certain time, it resets the movement start point and it will postion itself directly in the bottom corner.

Hope you can help me :)

Regards
Lemo
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Lemo,
Please can you give more detail, don't really understand when you say:
it resets the movement start point and it will postion itself directly in the bottom corner.
Can you post your skin so we can see what settings/actions you are using as well as a description on what the person viewing the tour should see.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
lemo_fri
Posts: 8
Joined: Thu Jun 29, 2023 12:34 pm

Hey Hopki,

thanks for replying so fast :) . A small example is attached.

Regards,

Lemo
Attachments
timer_movement_transition.ggsk
(1.87 KiB) Downloaded 18 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Any good?
Regards,
Attachments
timer_movement_transition_modified.ggsk
(2.04 KiB) Downloaded 19 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
lemo_fri
Posts: 8
Joined: Thu Jun 29, 2023 12:34 pm

Hey,

sth. like that should it be yes. I try to implement it in my project and let you know If it is working like i want it to

Is there a reason, why you used a container for the ICON?

Regards,

Lemo
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Lemo,
As I used percentages, 50% x 50% this puts the container's top left edge in the top centre of the screen.
Of course, the text box needs to be in the centre of the screen, so to aline the text box, working from the right side, the container is 50px wide and the text box is 100px wide, so now the container's top left edge is in the centre of the text box.
Then I use pixels to position the the container to the bottom left of the screen.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
lemo_fri
Posts: 8
Joined: Thu Jun 29, 2023 12:34 pm

Hey,

thank you very much for your service. :)

I want the whole process now repeatable. So when I click the button, it should reset the position of the Icon to the center.

Regards,

Lemo

Ps. the forum and the things you do are just amazing!! :)
lemo_fri
Posts: 8
Joined: Thu Jun 29, 2023 12:34 pm

Hey,

I got it now! 8)

Hope it helps someone else.

kind regards,

Lemo
Attachments
timer_movement_transition_modified.ggsk
(2.22 KiB) Downloaded 20 times
Post Reply