Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sdragon

Pages: [1]
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.


Pages: [1]