Hi! How can I make score update after object pass a y=100, I mean that i want something like a
if spike(this is my object).y < 100 then
score = score + 1
scoreNumber.text = score
or something like a
if spike.y == 100 then
score = score + 1
scoreNumber.text = score
I’m pretty new to lua language and I dont know if I need a EventListener there and how to write this. I tried
if spike.y == 100 then
print (“something”)
and it doesnt say anything