1
Support / Sprite HitTest with Screen point.
« on: August 30, 2012, 10:30:21 am »
Hello. I'm newbie game programming...
I wanna know how to hittest tk2d sprite without collider.
I have touch/mouseClick point(Input.mousePosition).
And I also have sprite/spriteDefinition data.
use sprite.getBounds() and transform position?
use spriteDefinitions.position and localScale and camerasize?
I tried many.
But I still don't know how to do it.
Please someone help me. I need any hint.
Thanks.
I wanna know how to hittest tk2d sprite without collider.
I have touch/mouseClick point(Input.mousePosition).
And I also have sprite/spriteDefinition data.
use sprite.getBounds() and transform position?
use spriteDefinitions.position and localScale and camerasize?
I tried many.
But I still don't know how to do it.
Please someone help me. I need any hint.
Thanks.