E
Elgarion
Guest
Hello everybody !
I have a question about good practices in programing : when you want to change an object's variable, do you use "with" or "my_object.my_variable" ?
the two ways seem to work :
or
Which one is the less costly, processing wise? Are there different effects? I prefer the second one, but it seems to produce unexpected results in long coding sheets, but it could be a bug from me. Any thoughts of advices would be very welcome !
I have a question about good practices in programing : when you want to change an object's variable, do you use "with" or "my_object.my_variable" ?
the two ways seem to work :
Code:
with(Obj_Player)
{
my_variable_health = 10 ;
} ;
Code:
Obj_Player.my_variable_health = 10;