Hello again guys,
I am trying to make the text of my inventoryslot button increment by 1 when an equal object is picked up. I have made a text on my inventoryslot widget (on the designer tab) and created a binding. In this binding I have this which causes and infinite loop when the first pickup is picked up, before even the second one is picked up in order to check if these 2 items which have been picked up are of the same:
What I think I have done till now is: get the array of the inventory slots, check in them if an object is the same with the other and if it is the branch brakes the loop and goes to add to the text +1, but doesn’t seem to work. An infinite loop seems to be coming from the “ObjCount” variable.
Any ideas how to approach this?
Thanks in advance