Counting a circle path

You must understand the Game Editor concepts, before post here.

Re: Counting a circle path

Postby Bee-Ant » Tue May 06, 2008 10:48 am

: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];
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Counting a circle path

Postby Fuzzy » Tue May 06, 2008 6:29 pm

no. use abs(value)
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Counting a circle path

Postby DST » Sat May 10, 2008 9:29 pm

Ok geniuses......what if I want to drag the earth around? How do we add Inertia to the moon?
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Previous

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest