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 01-20-2006, 03:51 PM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
Light effects: Need help!

The most i've done with light effects is the flickering of lanterns and a really basic fading shield. I'm not a whiz at mathematics/operations by any means and I have no idea where to start.

Basically, what I want with this effect is for lights to hover around the player and dance, like fairies of such. I cant, however, think of any mathematical operation that'd loop to a certain value then jump into the minuses so my knowledge can transpose that into a backwards movement.

A lot of help here would be brilliant. I learn best off snippets.
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
  #2  
Old 01-21-2006, 03:35 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
sine? cosine?
__________________
Reply With Quote
  #3  
Old 01-21-2006, 03:59 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Sin(1.57) = 1
Sin(3.14) = 0
Sin(4.61) = -1
Sin(6.28) = 0
Sin(7.85) = 1
Sin(9.42) = 0
Sin(10.99) = -1

See a pattern?
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 04:55 PM.


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