Pixel Perfect Fit / Collision

Get help using Construct 2

Post » Mon Sep 16, 2013 8:26 pm

https://www.dropbox.com/s/jcx9a3djlcm1p0i/Fit%20Into.capx

Newbie...

Why doesn't a 16x16 sprite fit into a 16x16 hole? I know there are some issues with the program dealing with very small objects, but it doesn't work for 250x250 sprites either.

All of the bounding boxes are the default squares. I'm using 8Direction Movement(set to only 4 directions) and the Solid behavior.

Is there a feature I'm overlooking to get this to work?
B
5
Posts: 17
Reputation: 259

Post » Mon Sep 16, 2013 8:36 pm

This has been answered many times before.

It's actually logical - they are overlapping if the object is the same size as the hole. The edge of the sprite is exactly in the same position as the edge of the hole, so how can one fit in the other?

The sprite would need to be 1pixel less than the whole, or conversely, the hole should be 1 pixel larger.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,487
Reputation: 59,760

Post » Mon Sep 16, 2013 8:50 pm

Hmm...Thank you.
B
5
Posts: 17
Reputation: 259


Return to How do I....?

Who is online

Users browsing this forum: Felipiwi and 24 guests