Hi,
I am building a game where part of the functionality requires me to swipe down and make the character drop a level. In order to do this I have set the UIImage for the platform to equal nil when swiped down but cannot figure out how to make this only happen for a second so that the character will fall through on swipe but when jumps back up the image has returned. Below is my code so far. Any help would be very much appreciated!
Thanks
I am building a game where part of the functionality requires me to swipe down and make the character drop a level. In order to do this I have set the UIImage for the platform to equal nil when swiped down but cannot figure out how to make this only happen for a second so that the character will fall through on swipe but when jumps back up the image has returned. Below is my code so far. Any help would be very much appreciated!
Code:
- (void)oneFingerSwipeDown:(UITapGestureRecognizer *)recognizer {
platform = nil;
}
Thanks