Can something be invisible, or have its alpha set to zero (or be a transparent png) and still receive touches?
Regards
i
A fast, easy to use, free, and community supported 2D game engine
Can something be invisible, or have its alpha set to zero (or be a transparent png) and still receive touches?
Regards
i
yes. the concept of touches is not associated with visibility.
thanks, whats the best method to make something transparent?
I use spritename.opacity=0; to hide any sprites.
I think you might be better off setting sprite.visible=NO. I think changing opacity still incurs overhead from the blending operation, whereas visible=NO won't bother attempting to render the sprite. Someone please feel free to correct me if I'm wrong, I'm not any kind of expert in openGL
if something is visible = NO, I assume you can still do rect intersections?
both work great by the way, so thx. Dont think its an overhead as its just one HUD sprite, sat under a visible sprite (dont ask)
You must log in to post.