I recently found a great freely disturbuted fire generator for flash and I wanted to use it in my current project.
There was some crazy code I have never seen before, I have figured most of it out but I still have some issues with a few of the oporators I am not familiar with.
for example:
perlinValid &&= (value == _distortionScale);
what does &&= mean?
and the other question was
super.height = value|0;
what does the | mean?
ive never seen &&= but i assume it means
if perlinValid & it equals true and value equals _distorionscale
super.height = value (or if value = null or undefined or false)then =0
Thank you Very much
I am still pretty new to classes and it is intuitive but I am having a hard time absorbing it all and making a useful connection to my timeline
[quote=joran420;2326670]ive never seen &&= but i assume it means
if perlinValid & it equals true and value equals _distorionscale
super.height = value (or if value = null or undefined or false)then =0[/quote]