Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Problem using setVisible — Gideros Forum

Problem using setVisible

MillerszoneMillerszone Member
edited September 2011 in General questions
Some of my sprites need to be Visible at certain times and then not Visible.

I'm getting this error with code below:
menu.lua:55: bad argument #1 to 'setVisible' (Sprite expected, got boolean)

When I used "menuGroup.setVisible(HTDAdScreen)" then the HTDAdScreen sprite became InVisible, but
how do you make it Visible again?

Comments

  • atilimatilim Maintainer
    edited September 2011
    You need to use colon ( : ) insead of dot ( . )
    HTDAdScreen:setVisible(false)
  • I think it's time for new glasses. B-)

    Thanks.
Sign In or Register to comment.