change image with table and after load the choosen image

wolltywollty Member Posts: 102

I added a table with 3 rows and 1 column
with 3 images of T-shirts
I created a button to select your favorite t-shirt
after i chose the t-shirt i press the save button
L'actor "load" automatically loading the chosen t-shirt

the problem is that if I want choosing another t-shirt actor appears white

What can I do?
where am I wrong?

thanks for your attention

https://www.dropbox.com/s/ola8sgzxske830k/Script_TABLE02.gameproj.zip

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    I downloaded the project file but I don't understand what the problem is. Can you write out the steps you're trying, the intended result, and the actual result, like this:

    1. Click selection actor... shirt changes color
    2. Click save tshirt actor
    3. Click load tshirt actor
    4. tshirt actor appears as a white box instead of as a blue tshirt.

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Your load tshirt actor has a rule that says When game.tshirt is true, Change Attribute self.Image but game.tshirt is not changing to true. I think the problem is that you have an Every 0.1 timer in your save tshirt actor and it should actually be an After 0.1 timer with run to completion checked.

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

Sign In or Register to comment.