Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Detecting a hit with a bone or sprite that is part of a skeleton?

Author
Message
Zwarteziel
14
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 21st Jun 2021 19:18
Hi,

I decided to check out the Skeleton-commands, using an animation made with Spriter. I can load my animation, but am wondering how I can detect if the sprites or bones that make up the skeleton are hit. There seems to be no command like GetSkeletonHit() or anything like it?

PartTimeCoder
AGK Tool Maker
10
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 21st Jun 2021 22:15
use a hit box or create a hit sprite and use FixSpriteToSkeleton2D to attach it to the bone, then just use normal collision checks on the attached sprite.

its a pain to setup and there is lost of overhead but the finished result can look quite impressive.
Zwarteziel
14
Years of Service
User Offline
Joined: 22nd Jan 2011
Location: Netherlands
Posted: 22nd Jun 2021 10:52
Thank you, PartTimeCoder! I'll experiment with that!

Login to post a reply

Server time is: 2025-05-08 17:36:26
Your offset time is: 2025-05-08 17:36:26