GameSalad

Help inverting a number

jay_jay_ Posts: 5Member, BASIC

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 Posts: 787Member, PRO

    *-1

  • SocksSocks London, UK.Posts: 12,350Member, BASIC
    edited April 5

    height *-1

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

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

    or simply . . . -height

    (and dozens of other ways)

  • HopscotchHopscotch Posts: 2,545Member, PRO

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

  • AlchimiaStudiosAlchimiaStudios Posts: 787Member, PRO
    edited April 5

    @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.Posts: 12,350Member, BASIC
    edited April 5

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

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

    :)

  • SocksSocks London, UK.Posts: 12,350Member, BASIC
    edited April 5

    @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_ Posts: 5Member, BASIC

    haha cheers guys great one ;)

Sign In or Register to comment.