Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.