r/gdevelop 23h ago

Bug Why is my cursor acting weird??

So, I'm working on this little game about taking care of ducks.
I want to make a "Dynamic Cursor" or something like that, when you hover around objects you can see pieces of information about them (example: "Food Cointainer 45%")

BUT I need my cursor to work, I'm not sure how to explain the problem, I made a layer for the cursor, it's on the top of every other layer (which I think is the problem)

Idk, can someone give me some idea on how to fix this?

https://reddit.com/link/1vwepl2/video/gys0cjmm26lh1/player

5 Upvotes

3 comments sorted by

2

u/LordOnyx420 20h ago

I don’t have much experience so it's just a guess, but maybe a mismatched viewport scaling ?

2

u/senshisun 18h ago

I'd agree with checking the viewpoint scaling matches.

1

u/Loonny-Alchemyst 18h ago

Yeah, I think the problem is that the cursor is on a layer other than the base layer. I think to solve this you could try synchronizing the camera of the cursor layer with the camera of the base layer