Question
So im working on inventory system that I am halfway thru with tutorial and i stoped in the middle cause i was confident enough that i can continue myself and I successfuly did. But now i have this strange roadblock. As you now when moving items inbetween inventory cells it should show you what item you took to replace like in minecraft. BUT i dont get how to do it, i spent almost 4 hours researching and got nowhere.
I had a idea how i can do this, just check IF taken_item == true then png of an item should follow mouse but i dont know how to do mouse part.
Hope somebody can help
How about finishing that tutorial first.
That tutorial was made on godot 3 so i just branch off it when i got idea where he was going with the idea and also couldnt get his way of doing it
Then you should be a bit more specific with the question and provide more context - code, scene structure etc.
Are you referring to this?
Input.set_custom_mouse_cursor() … then you just fill in relevant details.
Input.set_custom_mouse_cursor(null) is for when you want it to return to ‘normal cursor’
Or you meant it literally that you have a mouse and an icon follow it around?
var local_mouse_position = get_local_mouse_position()… or you can just use the global version to get the mouse position and move the icon towards the mouse every frame.