Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-22-2011, 01:16 AM
darkcloud667 darkcloud667 is offline
That One Guy.
darkcloud667's Avatar
Join Date: Dec 2009
Location: Missouri
Posts: 40
darkcloud667 will become famous soon enough
im a little curious as to how you would be able to implement this to show the formula in a particle form. i mean showing the parabola that the equation would create. i think it'd be pretty cool to be able to do parabolas on graal out of pretty lights.

any ideas :o
__________________
"Time is a great teacher, but unfortunately it kills all its pupils."

"Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings."

"The man who smiles when things go wrong has thought of someone to blame it on."
Reply With Quote
  #2  
Old 01-22-2011, 01:25 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by darkcloud667 View Post
im a little curious as to how you would be able to implement this to show the formula in a particle form. i mean showing the parabola that the equation would create. i think it'd be pretty cool to be able to do parabolas on graal out of pretty lights.

any ideas :o
That would be kinda weird, but definitely an out there idea.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #3  
Old 01-22-2011, 01:30 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by darkcloud667 View Post
im a little curious as to how you would be able to implement this to show the formula in a particle form. i mean showing the parabola that the equation would create. i think it'd be pretty cool to be able to do parabolas on graal out of pretty lights.

any ideas :o
A simple parabola:



Not sure if it's possible to use particles but you could easily use lights:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.showLights();
}

function 
showLights() {
  
temp.0;
  
  for (
temp.= (- 15); <= 15+= 0.5) { // change this to change the range of x values
    
with (findimg(200 c)) {
      
25 i;
      
10 parabola(i);
      
      
image "light4.png";
      
      
layer 3;
      
      
red 1;
      
green 0;
      
blue 0;
      
      
alpha 0.9;
    }
    
    
++;
  }
}

function 
parabola(i) { // returns y for y = 1/10(x^2); like f(x) = 1/10(x^2)
  
return (1/10) * (2);

__________________

Last edited by cbk1994; 01-22-2011 at 01:38 AM.. Reason: light4.png > light2.png
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 07:43 AM.


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