Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

Ignore image transparent pixels when checking touch

$
0
0

@m_45 wrote:

Hello, I want to check if player touched the black line.

My solution would be to get image pixel at touch location and check its color to see if it's transparent or not, but how to write this in code? Or maybe there is better way how I can do this. Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>