How do I set a hitbox

Get help using Construct 2

Post » Thu Dec 14, 2017 3:02 pm

Hi, I have a weird situation with hit box, when I want to move my character, he move correctly, but when I want to shot, he go into the floor >.<

Image
Image

and with the platform...

Image
B
4
Posts: 13
Reputation: 226

Post » Thu Dec 14, 2017 3:33 pm

Are you sure the collision box and the origin are equally set in all the animations ?
If the collision box is smaller in the "shooting" animation, your character will sink into the floor like that to a degree.
If the origin is different, the character could also "teleport" a little like that.
B
6
Posts: 43
Reputation: 347

Post » Thu Dec 14, 2017 3:39 pm

origin yes, but what do you mean when you speak about collision box?
B
4
Posts: 13
Reputation: 226

Post » Thu Dec 14, 2017 4:21 pm

Right Click on your sprite >> "Edit Animations"
Then, on the vertical menu on the left of your sprite, click on the "Set Collision Polygon" button. This is how you modify your hitbox. Be sure it is the same for every frame in your case ;)

Here is a picture to help you find the button : http://hpics.li/52126f4
B
6
Posts: 43
Reputation: 347

Post » Thu Dec 14, 2017 5:29 pm

oooooh, I think it was for create polygone !
thank you a lot, you resolved my problem ^^
B
4
Posts: 13
Reputation: 226


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 9 guests