How do I convert equation to negative number?

Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305
edited January 2018 in Working with GS (Mac)

How do I convert this equation outcome into a negative # ?

game.CAMERA ORIGIN X +( game.Camera SIZE X *.95)

Comments

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

    *-1

  • Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305
    edited January 2018

    @Socks

    (game.CAMERA ORIGIN X +( game.Camera SIZE X *.95)) *-1

    ?

  • Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305
    edited January 2018

    @Socks I mean, I know it's *-1, but how do I make it work in this formula?

    I've been trying all sorts of ways but it's not working... I just need to know how to write it in this formula the right way, with the parenthesis etc ect.... if you miss one parenthesis, it messes everything up.

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2018

    @Simple Gamer Arts said:
    @Socks I mean, I know it's *-1, but how do I make it work in this formula?

    Just add *-1

    If you multiply any positive number by -1 it will become negative.

    So . . .

    (game.camera.orgin.x +( game.camera.size.x*0.95))*-1

    Or

    -1*(game.camera.orgin.x +( game.camera.size.x*0.95))

    Or

    0-(game.camera.orgin.x +( game.camera.size.x*0.95))

    etc

  • Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 305

    @Socks Thank you. That helps a lot! :)

Sign In or Register to comment.