Posted: 21st Aug 2011 16:40
Hi,

I'm looking for a way to see if getspritehit has hit transparency part of a picture. I looked into getspritehittest but my sprite is a bit more complex than just a sqaure or a circle.

Any thoughts?
Posted: 21st Aug 2011 17:33
Hi,

Dont know if this will be any use, but you can use polygon shape instead of circle or square.

http://www.appgamekit.com/documentation/Reference/Sprite/SetSpriteShape.htm

though using polygon will affect performance if lots of sprites are used.

Scott
Posted: 21st Aug 2011 19:20
4 sprites that need to be checked and one more for background, but polygon is still not the best way my sprite is still more complex for that. I think it's not there (no possible way) at this point.

Maybe in future release of AGK.
Posted: 22nd Aug 2011 19:00
You can create compound shapes for sprites by using AddSpriteShapePolygon(), but unfortunately you'll have to work out the vertices manually.