Page 1 of 1

How to make a Polygon blinking! Need Help

Posted: Fri Nov 26, 2021 7:00 pm
by SergePix
Hello,

I try to make polygon blinking for 3 sec.

I have a menu that displays multiple Polygons, by choosing a Polygon from the menu, I can display this Polygon on the screen. I would like by choosing the polygon, that it blink for 3 sec

I tried to make the polygon blinking for a period of 3 sec with the Timer function but I can't seem to find the right way.

Your help would be greatly appreciated.

Thanks!

Here is my settings.
Polygone-setting.jpg
Polygone-setting.jpg (107.03 KiB) Viewed 1581 times
Polygone-setting-Timer.jpg
Polygone-setting-Timer.jpg (103.92 KiB) Viewed 1580 times

Re: How to make a Polygon blinking! Need Help

Posted: Sun Nov 28, 2021 3:11 pm
by Hopki
Hi SergePix,
To conform, what should blink, the button or the polygon?
Regards,

Re: How to make a Polygon blinking! Need Help

Posted: Mon Nov 29, 2021 2:53 pm
by SergePix
Hello Hopki,

My idea behind this modification is to allow the user to see more quickly where the lots are on the tour.

I would like, when the user chooses a lot on the menu, that the lot number (button) changes color and that the lot (Polygon) on the Tour, changes color and blinks for 3 sec. Subsequently if I choose another Lot, the button and the Lot previously chosen return to its initial color. And finally if I close the menu, everything returns to its initial state.

Thanks!
Lot-choisit.jpg
Lot-choisit.jpg (820.98 KiB) Viewed 1506 times

Re: How to make a Polygon blinking! Need Help

Posted: Sat Dec 11, 2021 9:00 pm
by SergePix
Hello,

Would you have an idea according to my request to do this project?

Re: How to make a Polygon blinking! Need Help

Posted: Tue Dec 14, 2021 1:07 pm
by Hopki
Hi Serge,
I have attached a project.
It has three polygon hotspots.
On project open, the three buttons are white.
As you select an area, the polygon flashes read three times then stays red showing it has been viisted.
As you select another button the button colours change and the next polygon flashes red.


The skin has two variables. one for the timer, poly_flash.
This uses a count, with each flash it counts up by one.
When it gets to four it stops the timer.

The next variable stores the Polygon ID, so Poly01, Poly02 and Poly03.
The variable value is then used in the timer to change the colours or the selected Polygon.
This should point you in the right direction.
Regards,

Re: How to make a Polygon blinking! Need Help

Posted: Tue Dec 14, 2021 2:37 pm
by SergePix
Hello Hopki,

this is exactly what I want.

The only thing I can't seem to do is reset the polygon to the original color. As I indicated on the post, the color of the polygons change depending on whether the Lot of land is sold or reserved.

Is there an action that allows me to copy the color of the polygon into a variable to paste it?

Or maybe to refresh the screen with an action so that the chosen polygon returns to its initial color.

Thanks a lot for your help!

Re: How to make a Polygon blinking! Need Help

Posted: Tue Dec 14, 2021 3:53 pm
by Hopki
My thoughts would be to open the project and change the button title to sold and remove its actions.
Then using the Hotspot editor change the colour of the polygon to say amber.
You will need to do this each time a plot is sold but only takes 10 seconds to do.
Regards,