Check your collision mask settings in the sprite editor. Also, please don't external link to code, as a lot of people just don't want to go somewhere else and switch back and forth to reply. Take the time to add the code to the topic and explain the issue fully.