Hi everyone,
I’m creating my first game and I really wanted to have the buttons change or get an outline when the mouse hovers over them. I made an object (the button) then applied these effects in the behavior (image below)
No matter what I try to adjust, this effect never really works. When the mouse hovers over the button it either doesn’t respond at all, or it might sometimes flash the animation for a quick second. I’ve tried all sorts of things, from looping the animation, not looping it, to testing out the different nodes, I tried creating a bundle for the animation etc… I even tried creating a different object (smaller in size just in case its a size issue) and tested it as well but got similar results. It feels like nothing is working.
I’d appreciate some help if anyone went through something similar!
try to instead enable “stay on last frame when done” and connect the “over” behavior into “start”. Keep “out” connected to “stop” as it is.
same result unfortunately
could you share the game link please? It could give me a better understanding of what might be wrong
because your custom mouse GUI is layered above the button, the button for some reason doesn’t detect the actual cursor. That’s why the button won’t play the animation whenever you hover your cursor above it.
Ohh I see! I just tried changing the display order of my mouse “object” to 1 (it was previously 999) and that didn’t change the result, it seems the button still isn’t detecting the cursor. I’m assuming there might be another way to change the display order besides what I just did? Appreciate your help btw.
actually, looking further into it, the mouse GUI seems to be messing up the detection of the cursor (removing it solves the problem), but the layering doesn’t seem to matter. I don’t know why, but it’s a bit strange.
thank you! That does seem to be the source of the problem… i’m trying to figure out a way to make the custom mouse work now, but the button’s problem is definitely resolved when the cursor is back to normal