Page 5 of 5

Re: Counting a circle path

PostPosted: Tue May 06, 2008 10:48 am
by Bee-Ant
:P
Btw will [] can get absolute value of any numbers???
for ex, I want to get an absolute value of this code
Code: Select all
animpos=(rand(30)+(exp/10)-((health*2)/100))/2;

If that code produce a negative form, can I get the positive form by
Code: Select all
animpos=[(rand(30)+(exp/10)-((health*2)/100))/2];

Re: Counting a circle path

PostPosted: Tue May 06, 2008 6:29 pm
by Fuzzy
no. use abs(value)

Re: Counting a circle path

PostPosted: Sat May 10, 2008 9:29 pm
by DST
Ok geniuses......what if I want to drag the earth around? How do we add Inertia to the moon?