Problem with Attribute and Change Attribute
Devils
Member Posts: 561
Alright like the title says every time I place the attribute and change attribute when I go to preview it loads the preview fine but when I back out there both blanks. Can someone help out?
Comments
Try a restart.
Also try reinserting the behaviors.
Are you changing the seed/parent actor or an instance? I always create my attributes in the seed actor and then modify them if needed in an instance. I try to avoid adding attributes to an instance only.
Make sure you are using the ".." button and selecting the expression/attribute rather than typing it in.
Other that those things...I'm out of ideas on what might be causing it without more details of the circumstances.
The .name attibute is the actor name. I don't think you can change it in game.
Try creating a text controller:
Create an integer attribute...such as self.textID with a default of 1
Then build the following rule structure:
Rule:
when self.textID = 1
display text...
Rule:
when self.textID = 2
display text...
repeat for each unique text you need.
Then create your button rule structure...such as
RULE:
when touch is released
self.textID = self.textID + 1