Swapping tiles/Save location?

Hi All- Using two of Tshirtbooth's tutorials I tried to create a system that would allow tiles to swap locations, and then save there locations on different scenes.. Unfortunately, I can't get them to work together, they swap, but when you return to the scene they are in odd locations.

Any ideas on how to fix this problem?

The link to the file: https://dl.dropboxusercontent.com/u/50480487/needhelp.gameproj.zip

Thanks!

-Peter

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2013
    @Peter_J You have two self.my index attributes and you are referencing both of them in different behavior expressions. Get rid of one and then repair your expressions.

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

  • Peter_JPeter_J Member Posts: 17
    Hi Tatiang-You're right, there is a blank spot. However, it is fixed on the actors in the canvas. So I don't believe thats the error.

    -Peter
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2013
    I deleted that comment because I quickly realized that you were using instance rules. But my comment above -- about duplicate self attributes is a needed fix.

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

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @Peter_J I can't open your zipped file example for some reason; so a guess that the following is relevant: make sure that the attributes you're using for actor xandy positions are game attributes, not scene or self. Might help you...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • Peter_JPeter_J Member Posts: 17
    @Tatiang , fixed that, however its still not working.

    @gyroscope. Yep, all the position attributes are game attributes.

    Thanks for the tips, however I'm still puzzled on why its not working.

    -Peter
Sign In or Register to comment.