Table Read and Write Glitch

KeithQKeithQ Member Posts: 25
edited February 2013 in Working with GS (Mac)
I've built a puzzle game that reads from and writes to the same table as actors are spawned or destroyed. Sometimes the image selected from the table is not the same one that is spawned. This seems to happen when multiple read writes are occurring. Meaning that rows are being added while reading from a row at random. Does anyone have a suggestion on how to make sure that Im not reading from the table while writing to them or vise versa. Or could this be caused by another issue.

Thanks in advance

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Another issue? No, I think you describe the issue that's causing the problem.

    But really, without seeing your rules, I don't have a guess. Post some screenshots or send me the project file and we'll go from there.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • KeithQKeithQ Member Posts: 25
    I found the issue and the solution. Well sort of my data was being past back and forth from two actors and the table. At the same time rows were being read at random. The current random row would then be passed to Actor2 when called. If a row was be read from Ex: Row1 and new rows were being added to the Table Ex: Rows 1,2,and3, one Actor2 would get the old Row 1 values and Actor1 the new values. The solution: wait for Actor2 to call for data before reading a row at random.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Glad you solved it! Sorry I wasn't able to help out.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.