I need help with changing starting value
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
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
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 !
Ace
(X+(cos)BlahBlahBlah,((self.time)/cheese)*400+XXX)-70
What goes in place of "BlahBlahBlah"
Thanks
No !
Can you do a screen shot of your code.
The second code is suggestions from this board
http://rowzone.net/coding
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
"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.