the if statement itself won't slow you down.. it's technically what you're testing that will slow you down.. minimize the needed tests and you should be fine. If statements are never the bottleneck of code, and at your stage worry more about getting the game working than optimizing.