+1 vote

For my game I need mouse cursor to change when a button is pressed, and then change back again to default when any other click is performed.

So when the button is pressed I call:


And then when detecting a click I try:


But nothing happens, the cursor still uses the 'spell_cursor'.

Any ideas on how I could accomplish this?

Thanks in advance!

in Engine by (26 points)
edited by

You will have to add arrow image and use that as default cursor.

Thanks! I'll use this fix for the time being.

1 Answer

+2 votes
Best answer

This looks like a bug that was fixed in the future version, because when I test this in Godot 3.1 alpha 1, it works fine.

by (27,902 points)
selected by

Ok, great! For the time being I'll use Oen44's suggestion and when 3.1 comes out I will roll back the changes.

Thanks :)!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.