(SOLVED) Making a selection cursor using animations

I’d like to add to what SnowyRawrGamer said.

After those changes, it’s going to create a domino effect or chain reaction. Each event will make the next event true.

Animation = Option1, set to Option2
Animation = Option2, set to Option3
Animation = Option3, set to Option1

Another technique would be to set the animation by number.
(I’m on my phone. So, I used the mouse)

Screenshot_20251103_024851_Chrome

If you wanted the selection to loop back to the top then you could use mod()

Screenshot_20251103_024843_Chrome

These both assume that there are 3 animations. The animation index starts at 0. So, would be 0,1 and 2

See also, the last example “3.2.3” if you wanted to set the animation by name.

https://wiki.gdevelop.io/gdevelop5/tutorials/how-to-make-togglable-states-with-variables/how-to-make-togglable-states-with-variables/

It kind of looks like you might have been doing something like this. This uses a variable named Changed…

2 Likes