Why can't I rotate 10 degrees at a time?

Hi all,

I need a circle to rotate 10 degrees every time it is pressed, but i've put a display text on the actor and it rotates from 0 to 9.99,19.99 etc.

What is going on? It used to work ok.

It’s not a bug – it’s an undocumented feature

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Recently a positioning bug has been introduced where at certain parts of the scene the actor won't sit on an exact x and y position, so perhaps it's the same with rotation. Rotation was fine for me a couple of days ago but it might have been in the perfect place. Try moving the actor 1 or 2 pixels left/right and up/down to see if it happens there.
  • Fal01Fal01 Member Posts: 460
    @KevinCross,

    Thanks for replying,

    No it's still not working, I think it's since they put 0.0 in the fields rather than 0.

    But surely it should be able to count in tens! :-L

    It’s not a bug – it’s an undocumented feature

  • SocksSocks London, UK.Member Posts: 12,822
    Even trying to 'floor' or 'ceil' it doesn't help !?

    : (
  • Fal01Fal01 Member Posts: 460
    Looks like it's a bug then, I need this to work to trigger attributes :(

    It’s not a bug – it’s an undocumented feature

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    this is how you do it

    create an local index attribute called rotationAngle or something

    constrain rotation to rotationAngle

    then when touch is pressed
    change attribute rotationAngle to RotationAngle + 10

    that but doesn't seem to effect index attributes in my testing.

  • Fal01Fal01 Member Posts: 460
    Cheers @jonmulcahy,

    I got it to work using 360 instead of 0 even though it goes to 359.999etc.

    It’s not a bug – it’s an undocumented feature

Sign In or Register to comment.