Papersprite Collision takes up blank space

Hello guys, I am new to the forums!

This is a papersprite, the collision is enabled inside of the object aswell, I want to be able to move inside of it though. Anyway I can make it so that collision is enabled but it doesn’t detect collision on the inside? (Without using multiple box collisions ofc)

Problem: Can’t move inside of the box: upoj further investigation, can move outside of the box and collisions work around the box borders

Intended, trapped inside the box, but can move

I DO NOT WANT TO USE BOX COMPONENTS! I will be scaling this sprite repeatedly and that will just make the tons of work later on.

Hey @Soldier1! Let me be the first to welcome you to the forums!

I’m having a slightly difficult time answering your question because I’m not sure what the interaction is and what the desired interaction is. Can you show a video? Or maybe just some more screenshots, so we can gather a little more information?

I have a few ideas but I want to make sure what I show you is what you need! :slight_smile:

Hey there, thanks for your help. Hopefully this unlisted video helps you understand my problem. As you can see the first example is the intended product, however I do not want to use box collisions here, just the papersprite collision, example 2 is doing just that, It is showing off what only Papersprite collision does. This sprite was uploaded as a .PNG file with Paper2D settings.

Once again, thanks for your help!

Hmmmmm. So what I’m seeing is the collision is one box collision across the entire thing. Even though you might think this is empty, this is a solid square.

image

Meaning: That’s the reason your heart there is trapped in one spot like it’s snared in a web.

The way this is typically done is with a single actor with 4 box collision “Walls” plus a non-colliding sprite for visual representation, which is incidentally very easy to scale. Is there a particular reason you’re set on not doing that?

child components do not scale correctly in this scenario, so I will have to do extra work to scale the box components seperately if lets say, you escape the box (it also scales incorrectly inside the box aswell in some scenarios.)

Hm. Could you possibly edit the collision of the box using this to give the collision it has basically 4 lines(just thin boxes) around the edge?

image
I haven’t ever had to do that with a sprite and I can’t find much on how to use it effectively :frowning:

2 Likes

Thank you, I tried this and it works perfectly, all I had to do was delete the old collision and add new collision boxes and it works as intended.

Thanks!

1 Like