why this happened?

hi all, i create a actor and created like 20 self attributes on it, each will change a game.atribute to self attribute, for ex.
one of my self attribute is called "image#" so i have this rule
change self.image to tablecellvalue( table.images,image#,1) so basically the actor changes image depending on his self.image#" attribute, ok so far everything was good, then i duplicated this main actor, and renamed "cross" , i did this because this saves time for other rules that i dont need to type again, but since i did not need this self.image# attribute on this new actor, i deleted this attribute. but now in my first original actor everything that used self.image# changed to 0.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    even in copies of actors the attributes are tied together. you need to duplicate the actor in the creator not the scene
  • guillefaceguilleface Member Posts: 1,014
    yeah thats what i did, i duplicated a actor in the creator, so in my second copy i deleted this self attribute that i did not need, so when i click play my whole game got a mess, i went back to check my first original actor and everything that was changed to self.image# was like change attribute to 0 , so i had to change everything that was in "0" to self.image# again, the big deal is that i had almost 40 change attributes that went blank, because i total deleted 18 self attributes from my second copy but for some reason my original actor was affected. this are the steps i did
    1. create a actor "hero", then in the actor i created 18 self attributes,
    2. duplicated "hero" and renamed "hero2"
    3. dupliacted again "hero" and renamed "cross"
    4. on "cross" actor deleted this 18 self attributes that i dont need,
    5. click play and got a mess.
    6. both "hero" and "hero2" self attributes have a value of 0 now, instead of self.attribute
    crazy ha
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    i think either you have some project corruption or are doing it wrong. I just opened a project, copied an actor and removed a bunch of self.attributes. in the original actor they were still there.

    make sure you are not duplicating them in the game, but in the actors window.

    also, mac or windows?
  • guillefaceguilleface Member Posts: 1,014
    mac, i think is a corruption,but iam not saying that the self attributes are gone, what i mean is that in the rules they are gone. i always do this and never happened, i now how self and global attributes work different, like also many times when i have a rule with many attributes and i move the mouse close to them, sometimes one attribute just becomes blank and i have to select the attribute again, or like images just disappear, i think is just gs still have some bugs.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    i've found (and have others), that it's best to try out ideas in a project that is separate from the one you are working on (or a copy). the constant adding and removing of attributes/rules/images and actors can cause strange things to happen. If you can keep your project to just adding the good stuff, you'll be in a better place.

    I bet if you started a new project and recreated your rules/actors, you'd be fine.
  • guillefaceguilleface Member Posts: 1,014
    can you try this? i just did this, create a new project ok
    create a new actor and in this actor a create a self.real attribute "points"
    create a global game.attibute "score"
    on my actor i drag a change attribute, change game.score to self.points and display this attribute ok, so i set it to 400, click play and works fine,
    now duplicated this actor, so now i have actor1 copy, on this new actor delete the change attribute behavior and delete the self.point attribute,now i went back and my first actor instead of having change attribute game.score to self.points, is like this
    change attribute game.score to 0 , this is not right.
  • guillefaceguilleface Member Posts: 1,014
    https://dl.dropbox.com/u/46439975/points.zip

    can you download it and duplicate the actor and in that actor just delete everything, i think that should not affect the first actor but it is.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    ahh ok, i didn't have any rules. I was able to duplicate this. I had an actor that was displaying self.points and setting self.points to game.points. after clearing the original actor, actor copy was displaying 0. but the change attribute rule was ok.

    looks like it could be a bug, make sure you submit it with as detailed as a description as possible.
Sign In or Register to comment.