jdowens / Bakery

New facebook type casual game
0 stars 0 forks source link

Click and hold bounds checking #1

Closed jdowens closed 9 years ago

jdowens commented 9 years ago

The bounds checking for a click and hold pattern is incorrect.

It is checking against the texture rect width and height (original size)

Need to scale the texture rect width and height by the current sprite scale before doing boundary check

jdowens commented 9 years ago

Fixed: used cc.Sprite.getBoundingBoxToWorld() to compute bounding box of transformed sprite