Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Dynamic Sprite Animation and Collision Detection — Gideros Forum

Dynamic Sprite Animation and Collision Detection

Nathan_DNathan_D Member
edited May 2013 in Game & application design
Hi all :),

Sincerest apologies if this question has been asked before, but I have run into a little issue in collision detection (I'm a rookie in coding :P). I'm developing a game where my sprite, the "Hero", does some dynamic animations such as stretching his limbs far across the screen.

My issue is that the Gideros Texture Packer packs images in simple shapes (squares, rectangles) and from my limited understanding collision is applied to the entire image. Does that mean when my Hero stretches his arm to the right, collision must applied to the whole sprite including the empty space above and below his outstretched arm? I'm worried about this because I have a small enemy that crawls on the floor, and I don’t want the Hero's outstretched arm to register a collision even though his arm completely misses the crawling enemy.

Thanks for reading and hope to hear from the community soon!

Comments

Sign In or Register to comment.