Hi, I'm attempting to create an inventory system using playmaker and it's going well so far.
*decided to upload the images to multiple places just in case*
I am getting a loop count exceeded error here:
http://postimg.org/image/lliubeo89/http://pasteboard.co/wUYp531.jpgIll Explain how I've got it working so far.
So when the inventory is opened, playmaker checks a string array and sets string variables named "Item X _var" based on the index.
http://postimg.org/image/y4415qall/http://pasteboard.co/wV4tKAu.jpgPlaymaker then takes the string from the first index variable and sets it to a temp variable named "CurrentItem _var".
Then its sets a temp object variable for the button image named "CurrentItemImage _var".
Then it compares the string of the temp variable "CurrentItem _var" with a blank string.
So if the the "CurrentItem _var" string has text in it then it checks what the string is. If it's empty then it will move on to the next slot and repeat the process.
http://postimg.org/image/udzsz39d5/http://pasteboard.co/wV6dqTW.jpgPlaymaker then compares the "currentItem _var" string with a list of manually written strings until it finds a match.
*The list currently only has an apple in it*
http://postimg.org/image/a7wb07dpl/http://pasteboard.co/wV96xRL.jpgOnce it has matched the string it will then set the image of the temp variable "CurrentItemImage _var" to the correct one.
http://postimg.org/image/xdbazy889/http://pasteboard.co/wVaaj7c.jpgThen it compares the "CurrentItem _var" with the "Item X _var" so it goes to the next slot.
http://postimg.org/image/6qyuaz415/http://pasteboard.co/wVbkUmB.jpgThen it should repeat the process until it has run through all the checks.
As you can see it sets the temp variables up to the correct values when its about to run through that line.
http://postimg.org/image/dy0j6uey1/http://pasteboard.co/wVcB8za.jpgSo when I pick up one apple its fine and nothing bad happens. But when I pick up more than one I get a loop count exceeded error.
I've looked at other threads which show the "Next Frame Event" action being used so I tried putting them between the "Slot X" node and the "Check Item" node but play maker fsm script doesn't progress past that point. The game no longer freezes but the images aren't displayed and play maker fsm script doesn't progress.
Anyone have any ideas?
If any more info is needed then let me know. I've been working on this for a while now and reallly realllly want to get it working!
Thanks