You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure this belongs as a built-in method, and there's not really a good place for it in /sys/lib. Might just write it up as a "How To" article on the wiki.
add in the follow code as a function to sprites as part of localbounds check maybe or a spriteUTIL that could be imported.
Sprite.overSolidPixel`` = function(pos)
x = (pos.x - self.x) / self.scale + self.image.width/2
y = (pos.y - self.y) / self.scale + self.image.height/2
c = self.image.pixel(x,y)
text.row = 25
return c[-2:] > "88"
end function
Use case would be such as in the blog post at https://dev.to/joestrout/pixel-perfect-sprite-clicks-20dl
The text was updated successfully, but these errors were encountered: