Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-03-2002, 02:43 AM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
Moving Light effecst.

torankusu:
I know there must be math involved, and I don't know what kind, except for maybe sin and cos.

I don't know (haven't learned) them, so if anyone would be willing to help with my learning of how to move light effects, whether it be a document or brief explanations of suggested terms, it would be greatly appreciated.

Thanks.
__________________
torankusu's

Last edited by Torankusu_2002; 09-03-2002 at 03:01 AM..
Reply With Quote
  #2  
Old 09-03-2002, 02:52 AM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
Quote:
Originally posted by Kaimetsu
All you need is showimg and changeimgcolors - the movement then is up to you. You could do:

NPC Code:

if(playerenters) timeout=0.05;
if(timeout){
timeout=0.05;
this.hi++;
showimg 0,light2.png,this.hi,30;
changeimgcolors 0,1,1,1,0.99;
}



Or you could go more complicated and use trigonometry and stuff. There's no simple answer here.
I knew that much, but I was wondering about circles or something similar to it.
__________________
torankusu's
Reply With Quote
  #3  
Old 09-03-2002, 03:02 AM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
Quote:
Originally posted by Kaimetsu


Just some simple trigonometry. Given the acute angle of a right-angled triangle and the length of the hypotenuse, can you deduce the other two sides?
p-theorum or something. I forgot it, and I was trying to remember it the other day.

I should of brought home my math book.
__________________
torankusu's
Reply With Quote
  #4  
Old 09-03-2002, 03:36 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
ya

Circles, radius and angles are fun to play with.

Explore, take apart, understand, then make your own
circle, sin/coc/arctan stuff
using scripts i posted here

http://forums.graal2001.com/forums/s...threadid=36172

mesmerising, isn't it?

math is cool .... at least the part i can sort of understand!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #5  
Old 09-04-2002, 03:32 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by Kaimetsu
post
a^2 * b^2 = c^2 - theorum.
I looked all of that up in my math book. I'll try to do the problems later.
Reply With Quote
  #6  
Old 09-05-2002, 05:10 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Smile

A simple 1
NPC Code:

if (playerenters||timeout){
showimg 1,light2.png,this.x,this.y;
changeimgcolors 1,random(.1,1),random(.1,1),0,.99;
this.x=random(0,60);
this.y=random(0,60);
timeout=0.05;}


i think thats right not sure x.x
Im a newby
__________________
V$:CONFL16T
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 10:13 AM.


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