Dropdown menu in hype


#1

Hello. I was able to create a dropdown menu in hype. now when the user clicks on my button, the menu drops down. What I would like to to is have the menu do the reverse (go up) when the user presses again on it. How do I do that?

You can see it in http://www.fusioncd.ca/virkon/Washing.html


#2

Iwould like to have the menu dropdown (open) when the user tap or click the pink box at the right corner and go up (reverse action) when the user taps again on the box


(Trey Yancy) #3

Have a transparent object cover the button when the menu is showing and attach your action to the transparent object, making sure that it also animates the object off the stage.


#4

Dont quite understand what you mean. The menu is a symbol on every scene.


#5

Create a duplicate of the button and set its visibiity and interaction off, then in the timeline for the drop down opening, make it visible. Set on mouse click for this duplicate button to continue timeline in reverse.

Hope this solves your problem.


(Rick) #6

You may also, if you haven’t done so yet, give that big square button a second look as my mouse sometimes misses a ‘mouse over’ hotspot. :sweat_smile:


#7

Thats the arrow image. If you go on the Actions tab and select ‘Ignore all pointer events’, it should fix that problem. Or group the button and the arrow and set the mouse over onto the group.


#8

Can you show me how to do that? I tried putting a button on, and have it appeared at one second and have the action set to reverse but it doesn’t work


#9

If you upload your hype document I’ll happily do it for you!


#10

Here it is.Dropdown.hype.zip (2.7 MB)


#11

This should work now :slight_smile:

Dropdown.hype.zip (2.7 MB)


#12

It does. Thanks a lot Pappa!


#13

Hello Pappa. I¹ve uploaded it


#14

Glad I could help :slight_smile: