<disclaimer>
...couldn't find anything on this....
</disclaimer>
By room variables I mean variables you declare at the top of a room script.Ã, Not in the global.
So, I had this at the top:
int rate_trans = 2;Ã, Ã, Ã, Ã, Ã, // static
int rate_opaque = 2;Ã, Ã, Ã, Ã, // static
These were effectivly constants for my room.Ã, the top one represents how many notches to make stuff more transparent per cycle, the 2nd one is the rate to make things less transparent. (ok they are the same at the moment).
I NEVER set these variables except for their initial values as seen above.Ã, I had some strange things occur.Ã, After much hair pulling and debuging I found that rate_trans was = to 100 during run time ?!?!?!?!?!?
One question I have about room variables is when and how often do the variables getting initialized?
Is it possible for some reason that rate_trans never got the = 2 and somehow ended up with a default of 100?
Anyway, this variable was used in room_repeat_exe every 5 cycles.
I have fixed it in the mean time by putting these variable declarations in the function called by room_repeat_exe.Ã, For some reason then, the 2 value stuck.
thanks
...couldn't find anything on this....
</disclaimer>
By room variables I mean variables you declare at the top of a room script.Ã, Not in the global.
So, I had this at the top:
int rate_trans = 2;Ã, Ã, Ã, Ã, Ã, // static
int rate_opaque = 2;Ã, Ã, Ã, Ã, // static
These were effectivly constants for my room.Ã, the top one represents how many notches to make stuff more transparent per cycle, the 2nd one is the rate to make things less transparent. (ok they are the same at the moment).
I NEVER set these variables except for their initial values as seen above.Ã, I had some strange things occur.Ã, After much hair pulling and debuging I found that rate_trans was = to 100 during run time ?!?!?!?!?!?
One question I have about room variables is when and how often do the variables getting initialized?
Is it possible for some reason that rate_trans never got the = 2 and somehow ended up with a default of 100?
Anyway, this variable was used in room_repeat_exe every 5 cycles.
I have fixed it in the mean time by putting these variable declarations in the function called by room_repeat_exe.Ã, For some reason then, the 2 value stuck.
thanks