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
Unfortunately you cannot change the Fixed Rotation attribute at run time.
NUTS!!! Alrighty then. I appreciate it!
I'm sure there are a million other ways to achieve what you want.
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.
Socks! Thanks! I haven't been on the forums in awhile- sorry for late reply- thanks again