View Single Post
  #1  
Old 01-06-2002, 08:49 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
script command for arcs

createarc name,number of points,center x,center y,radius,begin degree,end degree;

setarc createss arrays "[name]x" and "[name]y" of coordinates along circle with the given center point and radius, using a 360-degree system to determine where along the circle the given arc begins. Example:
PHP Code:
function projectarc(){
for(
i=0;i<arraylen(arcx);i++){
hideimg i;
showimg i,orez.png,arcx[i],arcy[i];
}
}
if(
playertouchsme){
toweapons ArcTest;
}
if(
weaponfired){
createarc arc,15,playerx,playery,1,300,60;
projectarc();
sleep 1;
createarc arc,15,playerx,playery,2,300,60;
projectarc();
sleep 1;
createarc arc,15,playerx,playery,3,300,600;
projectarc();
sleep 1;
createarc arc,15,playerx,playery,4,300,600;
projectarc();
sleep 1;
createarc arc,15,playerx,playery,5,300,600;
projectarc();
sleep 1;
for(
i=0;i<arraylen(arcx);i++){
putleaps 0,arcx[i],arcy[i];
hideimg i;
}

Yeah, you can do this with a lot of trig functions and stuff, but this, I believe, would be simpler and more efficient. Enjoy!
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote