if @sprite.opacity = 255 #do something end