How do I create a headshot function?

0 favourites
  • 3 posts
From the Asset Store
Awardkit
$5 USD
Create custom awards and achievement or use the many templates and create your own.
  • Hi! I hope you are doing fine out there in the forum!

    I'm making this online top down shooter and I wonder how to seperate body parts (the head and body) to make a headshot function out of it.

    The solution I'm thinking of right now is:

    - importing one image of the whole body

    - important one image of the head

    - pin them together

    - insert functions when the mouse is over the head or body. (This part I'd manage it on my own no worries)

    I don't feel it would be the most effective, though. Or is it?

    I've read about containers but I don't know if it's good to apply it to this.

    What about you? What do you think is the best way to make this function?

    Thanks in advance,

    Roland

  • You wouldn't have to create separate body parts unless it's important to the visual side of the game, you need to detect the head separately so you can pin an invisible sprite to the head and say if mouse is over this, if that is how the gameplay works for headshots.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you I'm going to try this. It seems much more simple.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)