How to make a Polygon blinking! Need Help

Q&A about the latest versions
Post Reply
User avatar
SergePix
Posts: 108
Joined: Fri Feb 01, 2019 2:27 pm
Location: Quebec

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 1429 times
Polygone-setting-Timer.jpg
Polygone-setting-Timer.jpg (103.92 KiB) Viewed 1428 times
Serge
Version: V7.01
Windows 10
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi SergePix,
To conform, what should blink, the button or the polygon?
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/
User avatar
SergePix
Posts: 108
Joined: Fri Feb 01, 2019 2:27 pm
Location: Quebec

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 1354 times
Serge
Version: V7.01
Windows 10
User avatar
SergePix
Posts: 108
Joined: Fri Feb 01, 2019 2:27 pm
Location: Quebec

Hello,

Would you have an idea according to my request to do this project?
Serge
Version: V7.01
Windows 10
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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,
Attachments
project.zip
(13.63 KiB) Downloaded 86 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/
User avatar
SergePix
Posts: 108
Joined: Fri Feb 01, 2019 2:27 pm
Location: Quebec

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!
Serge
Version: V7.01
Windows 10
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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,
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/
Post Reply