CocoaHeadsMsk/SukerMarioBros — pull request #3 by masters3d (2014-07-06 02:43:09+00:00)
Title: Update GameScene.swift

Does this work? I couldn't get it to work on my machine.

func didBeginContact(contact: SKPhysicsContact) {
let firstBody: SKPhysicsBody = contact.bodyA;
let secondBody: SKPhysicsBody = contact.bodyB;

if(self.isJumping == true && (firstBody.node == self.hero || secondBody.node == self.hero)) {
self.isJumping = false;
self.move = .None;
}
}