During the past several days, I have pursued multiple strategies for implementing a collection scheme. My current attempt involves the use of two arrays. An inventory array keeps track of item names, item costs, and item weights. I use separate animation frames inside a sprite named 'objTreasure' for different types of treasure. Upon collision with an item, C3 destroys the item and records the frame number in a collection array.
When I get to the final level, I'm trying to loop through the array and spawn the collected objects on the final page. Debugger shows me that the array is being populated, but I cannot -- for the life of me -- get anything to spawn on the final level. I added a loop counter as a global variable and confirmed that the loop is actually running.
I would be grateful for any suggestions! The link is:
transmedia.trinity.edu/~adelwich/temp/array-inventory-animation-frames.c3p
Thanks!