Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Why sorting doesn't working?
This is a part of Drag and Drop inventory system.
Selected_Cell - value of the initial inventory slot.
Selected_Cell_type2 - the value of the final inventory slot.
Looks like you're trying to swap two items?
I don't think you need the for each XY element. My guess is that it is swapping multiple times because it is looping through each XY and performing the actions for each XY element.
Develop games in your browser. Powerful, performant & highly capable.
Prominent
Yes, thank you very much, removed the for each XY element, and now everything is working as it should