Manipulating 'Fixed Rotation' with behavior: Change Attribute.

As in the standard Platformers, I want my protagonist to run straight on level surfaces, and have 0 rotation while standing on a ledge + being able to jump without flopping all over the screen like a [blank space for your own imaginative thoughts] and landing in a not-so-formal position...

However, I see GameSalad has very nice rotation options, and I'd like to partake... my protagonist slide down a slope + run up a slope -- ya feel meh?! - So I thought something simple like…

When actor is colliding with slope:

Change Attribute "Fixed Rotation" to "false"

Otherwise:

Change Attribute "Fixed Rotation" to "true"

Thus, unfixed on slopes, and fixed on level surfaces…

It's not working… however, there must be some way to change the Fixed Rotation with "Change Attribute" because the option is available!!! - perhaps "true"/"false" aren't acceptable values in this case? - I have tried 1/0, for the record...

Comments

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

    Unfortunately you cannot change the Fixed Rotation attribute at run time.

  • IrritatedVikingIrritatedViking Member Posts: 9

    NUTS!!! Alrighty then. I appreciate it!

  • SocksSocks London, UK.Member Posts: 12,822

    @IrritatedViking said:
    NUTS!!! Alrighty then. I appreciate it!

    I'm sure there are a million other ways to achieve what you want.

  • SocksSocks London, UK.Member Posts: 12,822

    @IrritatedViking said:
    NUTS!!! Alrighty then. I appreciate it!

    You could just have two identical actors, one has fixed rotation, the other does not, and swap between them as needed.

    Example file: https://www.mediafire.com/?ko6ycoukyc6ov6d

    Click on the white actor to swap between fixed and non-fixed (effectively turing fixed rotation on and off) - use left and right arrow to move.

  • IrritatedVikingIrritatedViking Member Posts: 9

    @Socks said:
    Click on the white actor to swap between fixed and non-fixed (effectively turing fixed rotation on and off) - use left and right arrow to move.

    Socks! Thanks! I haven't been on the forums in awhile- sorry for late reply- thanks again

Sign In or Register to comment.