Slide side menü

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
flatschart
Posts: 10
Joined: Mon Jun 29, 2020 6:17 pm

Hello friends !

I will make a sliding side menü with an button was rotate.
I give the rectangle an offset from 200px.
Its possible to say the button he starts rotate wenn the rectangle reach the offset from 100px ?
And the same principle when I collapse the menu again.

In my case start the button the rotate from begin the klick event.
I make a smale video for better illustration.
Attachments
Slide side menue.mp4
(407.56 KiB) Downloaded 103 times
Idocio
Posts: 52
Joined: Wed Apr 15, 2020 9:26 pm

Hello,
I don't know how you can pass a variable that calculates the distance of an object in pixels.

If the measurement is not critical and what you simply want to achieve is that the rotation effect is not immediate, I have seen that with version 7 the "delay" parameter has been introduced in the transition effects for the logic blocks. Playing with this parameter you can achieve the same effect.
flatschart
Posts: 10
Joined: Mon Jun 29, 2020 6:17 pm

thank you for your hint ! but i want the whole thing in a variable if possible.
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
I would use the method that Idocio suggested.
In the attached project the menu transition duration is 2 seconds.
The button has a 0.5 second delay with a further 0.5 second transition on rotation.
So 1 second into the 2 second menu transition the menu button has rotated.
This is using a variable.
Regards,
Attachments
menu_open.zip
(13.68 KiB) Downloaded 89 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/
flatschart
Posts: 10
Joined: Mon Jun 29, 2020 6:17 pm

Thank you very much for the help! I'll take a look right now :-)

EDIT: I have now tested it, it works wonderfully !!! Thanks for the great SUPPORT!!!
Post Reply