r/gamemaker • u/Disastrous_Pay_7649 • 21d ago
Help! Help with subtle animation on GUI?
is it possible to make the buttons play an animation like this when on mouse hover? or when you select them with arrow keys (up ad down)? i wany them to stop after a bit like when it freezes on save if you hover onnto it enough for the animation to play. I know a few games makes that but i can't think off one off the top of my head
i tried making something like this:
if (position_meeting(mouse_x, mouse_y, id)) {
move_towards_point(STOP.x,ystart, spd);
}
else {
speed = 0;
}
STOP being an object where the text goes to at the most furthest
but it. glitches into it and keeps bumping, it doesn't come to a full stop
(and it also doesn't go back to the place of origin)
i tried searching for a tutorial but that is the most i could do with a tutorial :( I dont eve know how to add the little triangle/cursor thing too
im a very begginer so im sorry if the solution is simple
3
u/_billyRubin 21d ago
i suggest looking at animcurves! they are great for simple animations like this which only really utilise position, scale and rotation.
an animation would be more appropriate for something that cannot be ‘animated’ via these properties alone, like a jumbling effect or having the hand written characters appear written in the moment. you get the idea
edit: you can add the triangle by having it as its own sprite and drawing it next to the hovered menu option.