Inventory (table) issue - Need help
KIIVIIN
Member Posts: 159
Hey sorry to bother you! I managed to make an inventory for my game but I have an issue.
When I press my item and add it to the inventory it works great.. all work fine etc and it even put the correct item in empty slot.
BUT when I click the item in the inventory, it change the slot attribute to image none and that is great but when I then later add an item again it cannot add to empty spots if an item is next to it.
Check picture.
the blue XX are items I "used" and when adding it adds to the blue XX but stops adding when it should add to the red XX spots.
What is the issue?
Comments
@KIIVIIN the above looks ok, the issue is probably in the routine determining the next available slot. Could you post that?
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
here is the slot rule for empty spots
Yeah that doesn't look like it's tracking what is empty where.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I'll make a demo for you today.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thank you!
I made some videos they are uploading now.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
thank you!!
One question, If I use a timer to add +10 to an table integer row/collum. Is there a way to make it stop when it hits lets say 100? because when using "if table..." there is only options is, are not etc. I dont know how to make it "if table row/collum >100"
Where can I find the videos? Checked the guru channel found nothing yet
You can do that by using the "numeric expression" in a rule.
Mental Donkey Games
Website - Facebook - Twitter
I managed to make this by max/min thank you anyways!
@KIIVIIN
here is a little project, it simplifies the process.
Two rules and two behaviors to manage it all.
Project is attached.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Final video is processing. Will be posting soon.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I used a loop for the table search but I see you used table search. Nice touch! I didn't use any Spawning and mine only needs one numeric value to define an item across the code.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@Lost_Oasis_Games thanks, yep, the tableSearch function is often overlooked, yet it is very powerful and fast since it scans the whole table in one draw frame.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Yes that didn't even occur to me..lol
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
tableSearch is amazing! Especially since you can use a tableSearch within a tableSearch!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support