View Single Post
  #68  
Old 04-30-2009, 10:27 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
Layers 4+ are screen layers.

"temp.i" is a variable, which is pointing to the image object. When you use 'showtext' or 'showimg', it returns the actual image created (can also be obtained through findImg(index)).
This confuses the piss out of me, doesn't it just make more sense to reference the index directly than to try calling a variable pointing to the index?

Quote:
Originally Posted by cbk1994 View Post
Kinda odd the way you're doing it. I would do it either like this:
Heh, that was someone elses little snippet of code, like I said, I was trying to read/understand it, I actually did your suggestion below in MY script:

Quote:
Originally Posted by cbk1994 View Post
PHP Code:
showtext(200500500 "Arial""b""Hello, world!");
changeimgvis(2004);
changeimgcolors(2001.5.51); 
Quote:
Originally Posted by cbk1994 View Post
GS1 and GS2 can mix, but it's strongly discouraged.
Any specific reason? Functionally is bad? Or some "purist" idealism?


Quote:
Originally Posted by cbk1994 View Post
echo(message) simply outputs the message to NC (or RC if you have the server option enabled), and since he's echoing a function, it will echo whatever that function returns.
So basically, it's not needed to join a class?

Quote:
Originally Posted by cbk1994 View Post
Edit (in response to designating clientside/serverside):
PHP Code:
join("class"); // serverside
//#CLIENTSIDE
function onCreated() {
  
classFunctionThatWillAlreadyWork();

I thought anything behind // isn't read by the system, so how does tagging //serverside produce a difference in the code?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote