Hi, I’m making a a little thing and what I’m trying to do is get the start text at the top to remove when the screen is tapped. I have that working, but once you tap again it comes up with an error saying it’s a nil value. Any help?
The function for removing the text is the following:
[lua]function touchScreen( event )
if event.phase == “began” then
print(“touch”)
PlayerScore.text = "score: " … score
score = score + 1
startBanner:removeSelf
end
end[/lua]
I know why it’s throwing up the error, but I don’t know how to fix it.