How to add a swipe gesture to a node in spritekit

前端 未结 1 1928
梦毁少年i
梦毁少年i 2021-01-22 23:49

I\'m trying to add a swipe gesture to a node so that when a user swipes it, it goes off screen but I keep getting a SIGABRT error:

`Terminating a         


        
1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-23 00:23

    Had the same problem, just so we have an accepted answer on this I would like to point out that the comment left by 0x141E is the correct solution to this:

    Replace Selector("swipedRight:") with #selector(PlankScene.swipedRight)

    0 讨论(0)
提交回复
热议问题