Thread: tiles[x,y] ?
View Single Post
  #30  
Old 12-09-2005, 09:32 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
It doesn't matter that it's being calculated.
What matters is how often it's being calculated.

If it's once, Sure, don't bother to pre-calculate.

If it's hundreds of times a second, I recommend pre-calculating it.

Just put it in a variable at creation, and use that in the script. That will garentee it's only calculated once.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote