How to add a swipe gesture to a node in spritekit

前端 未结 1 1927
梦毁少年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)
提交回复
热议问题