Hey guys! I don’t do much work with arrays and am still fairy new to FlashPunk and its special methods. Say I have an array, it is my inventory, it is currently filled with 9 empty inventory images.
How would I go about searching the array for the first empty slot and then replacing that slot with say a freshly picked up rock image?
I keep getting errors that I am unfamiliar with and am not sure if it is because my array is filled with entities or if I am doing something else wrong. Probably both… lol
Thanks