Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 01-06-2002, 09:04 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

that would be a waste of memory. you can do that with trig (as you stated) much more efficiently.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
Reply


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 02:20 AM.


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