SaveAttribute doesn't work ?
galban
Member Posts: 62
Hello
In my scene, i have à rule
Actor receives event -> touch is pressed
- change attribute game.UnlockLevel2 to random(10,20)
- save Attribute ->game.UnlockLevel2 KEY MemUnlockLevel2
MemUnlockLevel2 is a global attribute numeric
in the first scene i have the Behaviors
- Load attribute ->MemUnlockLevel2 ATTRIBUTE attribute game.UnlockLevel2
- Display Text attribute game.UnlockLevel2
When i test on my iPad, "Display Text attribute game.UnlockLevel2" always display the zero value
Why my attribute is not saved ?
Best regards (sorry for my english, i'm french)
In my scene, i have à rule
Actor receives event -> touch is pressed
- change attribute game.UnlockLevel2 to random(10,20)
- save Attribute ->game.UnlockLevel2 KEY MemUnlockLevel2
MemUnlockLevel2 is a global attribute numeric
in the first scene i have the Behaviors
- Load attribute ->MemUnlockLevel2 ATTRIBUTE attribute game.UnlockLevel2
- Display Text attribute game.UnlockLevel2
When i test on my iPad, "Display Text attribute game.UnlockLevel2" always display the zero value
Why my attribute is not saved ?
Best regards (sorry for my english, i'm french)
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
http://www.consulog.com/temp/2.png
http://www.consulog.com/temp/3.png
Yes, I copied the behavior
I tested without copy the behavior, it works !
This is a bug gamesalad.
thanks !!!!