Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if firstBody.node?.name == "Container_Circle_Blue" && secondBody.node?.name == figure_name_cb {
- print("Contact detected")
- containerSprite[0].block.texture = SKTexture(imageNamed: "Circle_Blue_Filled")
- //print("Contact happened between square 1 and square 2")
- circle_blue.isHidden = true
- circle_blue.physicsBody = nil
- arraySprites.remove(at: index)
- }else{
- circle_blue.position = CGPoint(x: self.frame.size.width / -4, y: self.frame.size.width / 2)
- }
Add Comment
Please, Sign In to add comment