Help inverting a number

jay_jay_ Member, BASIC Posts: 5

Basically I am containing an attribute to the height of an actor, thought out time the actors height decreases. But the number on the attribute I want the same as the height but inverted. i.e actors height is 500, after 10 seconds is 300, I want my other attribute to be -500 then -300. not matter what the height is its returned inverted in other attribute. Any input would be great thanks

Comments

  • AlchimiaStudiosAlchimiaStudios Member Posts: 1,069

    *-1

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2017

    height *-1

    or . . . . height-(height *2)

    or . . . . (height *2)*-0.5

    or simply . . . -height

    (and dozens of other ways)

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @Socks, I am shocked you left out height * sin(270)

  • AlchimiaStudiosAlchimiaStudios Member Posts: 1,069
    edited April 2017

    @Hopscotch said:
    @Socks, I am shocked you left out height * sin(270)

    Wow, I'm surprised too. You could say it's almost a sin that he forgot it. B)

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2017

    @Hopscotch said:
    @Socks, I am shocked you left out height * sin(270)

    I'm shocked you didn't mention the AppformativeNumberReversingService™

    :)

  • SocksSocks London, UK.Member Posts: 12,822
    edited April 2017

    @AlchimiaStudios said:

    @Hopscotch said:
    @Socks, I am shocked you left out height * sin(270)

    Wow, I'm surprised too. You could say it's almost a sin that he forgot it. B)

    I will now drink three bottles of red wine and reflect on where I went wrong with my initial post, if I don't get back to you with my thoughts I am probably asleep in the bath.

  • jay_jay_ Member, BASIC Posts: 5

    haha cheers guys great one ;)

Sign In or Register to comment.