swift - Jump only when landed
问题 I'm looking to restrict my character (cat), to only jump when it's either on the ground (dummy SKNode), or when on the tree (treeP SKNode). Currently I don't have any restrictions to touchesBegan and as a result the cat is able to fly through the air if the user clicks in quick succession, whilst this could be useful in other games it's not welcome here. If anyone could help me I'd be really happy. What i would like to do but have no experience would be to enable a click (jump), if the cat