ewpolly1

Hittest a tilesprite?

Recommended Posts

I have recently attempted to switch several parts of my game from sprites with static p2 bodies attached, to tile sprites with static p2 bodies for texture purposes. However, the tile sprites do not seem to be detected at all with p2 hittest. I have done some research, but the most that I have found is that tile sprites has their own hitarea property, however there is little to no explanation for how to use this. As an additional point, some of the tile sprites are rotated, if that is at all relevant. Is there a simple way to recreate the hittest of a standard sprite on tile sprites(i.e. Adjust the hitarea to cover the sprite)? Any help is appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.