Jump to content

how to decide the size of the collision rectangle to contain the player in Construct 2


babymumu

Recommended Posts

Hi

I got another question to bother you guys. How can I decide the size of the collision rectangle I created in Construct 2 to match exactly that of the player animation? I don't know how to decide the size of the rectangle to contain the player in Construct 2. Thanks for the help!

Link to comment
Share on other sites

Your question is worded a little vaguely. By Rectangle, I can only assume you mean a  (rectangular shaped) C2 sprite you created which you are attaching the Spriter object to.

If so, you can resize this rectangle in the frame editor to whatever size and proportions you'd like.

As far as deciding on the size, that is up to you... you have to try something, play test it, and change it until it feels right.

In general, hit boxes that can get the player hurt should be smaller than the actual animations (so a player cant be killed when a bullet touches the tip of his tail) and collision boxes which let the player attack should be a bit bigger than the visual representation of the attack (to give the player a slight additional advantage).

Am I misunderstanding your question?

Cheers.

-Mike at BrashMonkey

Link to comment
Share on other sites

Thank you for you reply! You answered my question well. I also found that using image point of the Spriter animation parts as the collision zone is quite effective. Setting a mini collision box onto the image point position works even better. Really enjoy learning and using Spriter!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...