ios - unable to change the centre point of a UIImageView -
so, in ios pacman game, after collision detected between pacman , enemy brick method runs. suppose stop game timer, show start button , return pacman start point. method functions correctly except pacman stays , never returns start point, making obvious mistake in changing centre point?
-(void)lose{ [self stoptimer]; self.play.hidden = false; _start = cgpointmake(30, 247); self.pacman.center = self.start; [self.pacman setneedsdisplay]; }
thanks help, alex
if there problem.
self.pacman.center = cgpointmake(30, 247);
Comments
Post a Comment