# Gesture recognizer to the scene’s view

**URL:** <https://forums.kodeco.com/t/gesture-recognizer-to-the-scene-s-view/24791>\
**Category:** 2D iOS & tvOS Games by Tutorials\
**Created:** [January 4, 2017, 2:56am UTC](https://forums.kodeco.com/t/gesture-recognizer-to-the-scene-s-view/24791 "2017-01-04T02:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikingsmin](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@vikingsmin](https://forums.kodeco.com/u/vikingsmin)\
**Post date:** [January 4, 2017, 2:56am UTC](https://forums.kodeco.com/t/gesture-recognizer-to-the-scene-s-view/24791/1 "2017-01-04T02:56:37Z")

</div>

Hi i am following along with the pdf tutorial on touch handling methods for GameScene zombie conga and the pdf says that i can use your sample code at the end of the chapter to see how gesture recognizer works but when i do as pdf says and comment out my old code to implement sample code you give me i am getting the error the error message indicates that “use of an undefined identifier scene touched” sample code is not working.

this is what instructions are in pdf.  
“You can add the gesture recognizer to the scene’s view in didMove(to:), and  
you can use SKScene’s convertPoint(fromView:) and SKNode’s convert(\_:to:)  
methods to get the touch in the coordinate space you need.  
For a demonstration of this, see the sample code for this chapter, which  
includes a commented-out demonstration of gesture recognizers for you. Since  
it does the same thing as the touch handlers you implemented, comment out  
your touch handlers when you run with the gesture recognizers if you want to  
be sure the gestures are working.”

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/3/8/3861e1bccaeb6e9aa9f8dd22e0678683859f8c20.png)
