Problem with Change Attribute (possibly connected to latest update of Creator?)

Hi there. I am having some trouble with a very simple Change Attribute rule. My (iPad) game was working ok when I was running under an older version of Creator but now it doesn't seem to be working as it should:

I interpolate an actor's self-position x to -420

Then I have a rule which says: When self-position x is -420 Change Attribute self-position x to 1434

Currently it is reaching -420 as it should but then the value is not changing to 1434.

Any suggestions would be gratefully received.

Comments

  • gingagaminggingagaming FREELANCE GS DEV Member Posts: 1,685

    Do you by any chance use "copy and paste" when copying your behaviours at all? Because I've broke a game using copy & paste with the latest 11.0. Whilst it apears to copy the behaviours on screen, when in test, some behaviours act differently, just like this.

  • colandercolander Member Posts: 1,610

    Try putting the Change Attribute self-position x to 1434 in a timer and set it to After 0.1 second and see if that works.

  • SocksSocks London, UK.Member Posts: 12,822
    edited June 2014

    @flurospeedo said:
    Hi there. I am having some trouble with a very simple Change Attribute rule. My (iPad) game was working ok when I was running under an older version of Creator but now it doesn't seem to be working as it should:

    I interpolate an actor's self-position x to -420

    Then I have a rule which says: When self-position x is -420 Change Attribute self-position x to 1434

    Currently it is reaching -420 as it should but then the value is not changing to 1434.

    Any suggestions would be gratefully received.

    It's a bug - you can't change an attribute that has just been interpolated that is looking at the final target interpolation value as its trigger to change.

    Thread: http://forums.gamesalad.com/discussion/68940/change-attribute-bug

    Try Colander suggestion above.

    . . .

  • flurospeedoflurospeedo Member Posts: 33

    Thanks to you all for your replies. @Socks a-ha that explains it! I was able to solve it by creating an attribute called nameofactorX and constraining the value to self-position X. I was then able to test that value instead of self-position X before changing self-position X.

    Thanks again!

Sign In or Register to comment.