Value as Parameter

Started by rtf, Fri 02/04/2004 01:02:53

Previous topic - Next topic

rtf

Hey.
Let's get right to it.

In my room script, I want there to be this part where Character EVIL's Transparency decreases gradually from 100 .
My idea was this:





 int tran = 100;




    while (tran > 0){
     SetCharacterTransparancy(EVIL,



That was where I stopped, becasue I diddn't know if AGS could set a value to be an integer on a parameter.


I know it can be done, so can someone please tell
I fail at art.

Gilbert

Why?

I don't quite understand what did you mean by:
Quote
I diddn't know if AGS could set a value to be an integer on a parameter.

The only accetable variable types currently are only integers (plus vatiants, like short and char) and strings.

Judging from your code, I think what you're going to do is:
while (tran > 0){
SetCharacterTransparancy(EVIL,tran);
Wait(1);
tran--;
}

rtf

Even if you don't understand, I do thanks to your description.  Thanks

I had a hunch that that might work.
I fail at art.

SMF spam blocked by CleanTalk