Thank you for the reply. Use of the mathlib results in a Fatal Exception Error, I will be using your library.
I will have to rereading your last reply, because I am getting what I expected.
code:
*********************
function PenUp;
variables;
numeric hold0x;
numeric hold0y;
end;
hold0x = 80;# these are the center point of the gear
hold0y = 70;# in frame 20
if Frame20.hidden = false;
#this draw is used to draw the line over the last call to
#to show the gear BMP file
draw Frame20, line, lastx - homex, lasty - homey;
clear Frame20, rectangle, 0, 0; #to clear up redraw list
# call location(homex,homey,lastx,lasty);
# FATAL EXCEPTION ang = atan2((lastx - homex) , (lasty - homey));
ang = cslASIN(lastx - homex /cslSQRT(lasty - homey * lasty - homey +1));
transx = lastx;
transy = lasty;
end_if;
end;
function getpi;
variables;
numeric hpt = 25;
numeric hold1x;
numeric hold1y;
numeric hold5x;
numeric hold5y;
end;
hide frbegin;
clear Frbegin, rectangle, 0, 0; #to clear up redraw list
show frbegin;
set Frbegin, pen, 117, 72;# center of gear
draw frbegin, line, (ang/30) - 117 , (ang/30) - 72;
# draw Frbegin, line, ((homex / 24) * pi) - hpt, ((homey / 24) * pi) - hpt;
text03.display = string(ang,"#.######");
text04.display = string(transx,"#") + ".." + string(homex,"#");
text05.display = string(transy,"#") + ".." + string(homey,"#");
end;
complete project(not the real project - it's done, would just like to add this feature) is here for june 2010 only:
http://www.mediafire.com/?nxz5ncmmoiiThanks again, for the help I will reread and try changing for formula around, or items in formula around, no need to reply.