i'm making flappy bird-esque game on swift , having trouble resetting character once hits object or ceiling. it's not issue because restart last left off. however, when hits high object or ceiling, gets stuck because character moves , continues hit ceiling infinitely, causing have close , restart game.
what line of code need reset it's position automatically upon collision? thanks!
Comments
Post a Comment