Page 1 of 1

Combined positioning and visibility using a timer

Posted: Wed Mar 06, 2024 11:53 am
by lemo_fri
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

Re: Combined positioning and visibility using a timer

Posted: Wed Mar 06, 2024 12:08 pm
by Hopki
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,

Re: Combined positioning and visibility using a timer

Posted: Wed Mar 06, 2024 2:24 pm
by lemo_fri
Hey Hopki,

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

Regards,

Lemo

Re: Combined positioning and visibility using a timer

Posted: Wed Mar 06, 2024 9:02 pm
by Hopki
Any good?
Regards,

Re: Combined positioning and visibility using a timer

Posted: Thu Mar 07, 2024 8:35 am
by lemo_fri
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

Re: Combined positioning and visibility using a timer

Posted: Thu Mar 07, 2024 10:28 am
by Hopki
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,

Re: Combined positioning and visibility using a timer

Posted: Thu Mar 07, 2024 12:12 pm
by lemo_fri
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!! :)

Re: Combined positioning and visibility using a timer

Posted: Thu Mar 07, 2024 3:00 pm
by lemo_fri
Hey,

I got it now! 8)

Hope it helps someone else.

kind regards,

Lemo