Button Issue

I decided to change out my background and buttons on my titlescreen. I left all the coding the same and the name of the PNG files and just switched them with the new graphics. When I did that one of my buttons doesn’t show up. It’s there because I can click it but it doesn’t show up where you can see it. I figured it had to be with the PNG file, so I recreated the button again in photoshop and got the same output. What could the possible reason be that the button is not visually showing but is there? [import]uid: 72372 topic_id: 12939 reply_id: 312939[/import]

That’s odd - you didn’t change ANY code at all? You could try using button:toFront() maybe? [import]uid: 52491 topic_id: 12939 reply_id: 47451[/import]

Yes it is weird but I don’t need the button to front because it’s already to the front. I can even click the button because I know where it is but it is just not showing and it’s a black button on a light background. It’s driving me crazy:-) [import]uid: 72372 topic_id: 12939 reply_id: 47462[/import]

I just learned this but your touch events will go through all layers of images unless you add “return true” to your function. It is possible that the button is actually behind but still registering the touch event. Do you have any code you can post? [import]uid: 31262 topic_id: 12939 reply_id: 47482[/import]

aaaron,

Thanks and it was something going on with the image. I sent it to a friend and the same thing happened to them. He re-drew the button for the 5th time and now it’s working.

Thanks for the response. [import]uid: 72372 topic_id: 12939 reply_id: 47491[/import]