I need help with changing starting value

bajashbajash Member, PRO Posts: 215
edited March 2012 in Working with GS (Mac)
Hi All,
I am using the display text attribute to display the value of vectortoangle(Accelerometer X, Accelerometer X ) on one of my actors.
My problem is that I would like the text to display starting from 0°, not at 360°.
Can anyone let me know how this is done. I have tried just about everything and I am not getting the desired results.
Thank you in advance

Comments

  • bajashbajash Member, PRO Posts: 215
    Sorry, I meant 0 degrees to 180. degrees.
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    Without looking at your code I can't say for sure . . . . but can't you just stick an offset at the end of your expression . . . ?

    So if . . .

    Display X+(cos)BlahBlahBlah,((self.time)/cheese)*400+XXX

    . . . gives you 90, but you want it to give you 20 . . then simply add this offset on the end . .

    Display (X+(cos)BlahBlahBlah,((self.time)/cheese)*400+XXX)-70


    In your case can you not simply stick -180 on the end of your expression to change 180 into 0 ? Hope that makes sense !
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Always use cheese in all of your expressions and you can't go wrong!

    Ace
  • bajashbajash Member, PRO Posts: 215
    So it should read in mu display text box:

    (X+(cos)BlahBlahBlah,((self.time)/cheese)*400+XXX)-70


    What goes in place of "BlahBlahBlah"

    Thanks

  • CloudsClouds Member Posts: 1,599
    edited March 2012
    So it should read in mu display text box:

    (X+(cos)BlahBlahBlah,((self.time)/cheese)*400+XXX)-70

    No !

    Can you do a screen shot of your code.
  • CloudsClouds Member Posts: 1,599
    Always use cheese in all of your expressions and you can't go wrong!

    Ace
    I like to use a mature Cheddar, helps with interpolation.

  • bajashbajash Member, PRO Posts: 215
    Yes I can, But where do I upload to?
  • GraphicWarehouseGraphicWarehouse Member Posts: 927
    @Tynan I would use a softer cheese like mozzarella instead of cheddar it tastes better and it helps with acceleration
  • bajashbajash Member, PRO Posts: 215
    Here is link. The first rule is the one I have been experimenting with, it is turned off.
    The second code is suggestions from this board


    http://rowzone.net/coding
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    The second code is suggestions from this board
    My suggestion was an example - I was not typing out actual code - I was just using any old example as an illustration.

    If you want something that currently displays 180 to instead show 0 then you could try sticking -180 on the end of your expression as an offset.


    P.S:

    This place is good for hosting images: www.TinyPic.com
    This place is good for hosting files: www.mediafire.com
  • bajashbajash Member, PRO Posts: 215
    Hi Tynan,

    "If you want something that currently displays 180 to instead show 0 then you could try sticking -180 on the end of your expression as an offset"

    Tried this many test's ago. Does not work.


Sign In or Register to comment.