Quote:
Originally Posted by cbk1994
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
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
PHP Code:
showtext(200, 500, 500 "Arial", "b", "Hello, world!");
changeimgvis(200, 4);
changeimgcolors(200, 1, .5, .5, 1);
|
Quote:
Originally Posted by cbk1994
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
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
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?