Forum Archive

SpriteNode touch test

dashorty

Hello
I want to code a Dart-Score-App.
Is there a solution to test if a user touch a SpriteNode? The Textures are rectangles with alpha.

ccc

if touch.location in sprite_node.frame: # a real hit test

See https://forum.omz-software.com/topic/2518/tip-useful-objects-like-rect-obj-in-scene-module-others-also/7