I
I
idakseart2019-01-18 23:00:28
css
idakseart, 2019-01-18 23:00:28

How to handle clicks on SKShapeNode?

There is an SKShapeNode object, it is necessary to somehow handle the tap on this object. How should it be implemented?
I have an option to check the coordinates of Tapa and the node, but it turns out somehow too cumbersome.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Just_Andrew, 2016-05-10
@Just_Andrew

Если я правильно понял вопрос, то решение тут

Максим Тимофеев, 2016-05-10
@webinar

А в чем сложность? Список inline. Стрелка делается через border или svg. С помощью css задаем каждому пункту background и цвет (border или svg).

D
doublench21, 2019-01-19
@doublench21 Swift tag curator

Weird question. You seem to use such classes, but either you don’t know about the basics or you forgot about them.
override func touchesBegan(_ touches: Set, with event: UIEvent?)
To determine which node it is, look at the name property of your node.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question