Is there any difference between visible= false and hide()?

If so when would you use each?

I looked in the source code, and there should be no difference. Setting visible calls show/hide in the source code.

No problem!

(I changed this discussion to a question and marked my reply as the answer so it is easier for people with the same question in the future to find this thread)

Good to know. I find using the "visible" Boolean leads to simpler code (removing if statements).

For example, if you want to toggle the visibility you can do:

visible = not visible

Or based on screen bounds

visible = position.x < 1024

Hope that helps

3 years later