0 votes

I have tried to use the move_item function in order to change the index of an item in an ItemList, but it seems to not exist as a function. It says: Invalid call. Nonexistent function 'move_item' in base 'ItemList'. Am I missing something? Is there some other way to change the index of a selected item in an ItemList?

Also, is there a way to set the index of an item, because there is no way if being able to tell exactly what item is where if I cant set a variable to its index. I'm so confused by ItemLists by the docs!!!

This is also for an inventory, so let me know if there's a better way of tackling this.

in Engine by (37 points)
edited by

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.