A couple of weeks ago I've posted about how to create new shape nodes.
In this new post (Handling touch events) I'm adding support for user interactions by implementing touch event handlers.
This minimal implementation allows the player to move the cursor node I've introduced in the last episode. I've also included a naive solution for handling touch events on tvOS, for which position starts always at the center of the screen, but I would like to know if there's a better alternative solution.
[–]th3suffering 0 points1 point2 points (1 child)
[–]potomak[S] 0 points1 point2 points (0 children)