Page 1 of 1

Collision with sprite borders

PostPosted: Sun Apr 28, 2013 8:39 am
by Tranquility
Hi,

I've been playing around with C2 after doing the first tutorial and reading the tutorial on the platformer, and I think I've got the gist of things.

Though I have a problem. When trying to make a platform that isn't completely flat, my character just sits on the invisible borders of the sprite instead of on the line I've drawn.

Is there a way to change this?

Here is a capx of what I mean:

https://www.dropbox.com/sh/nx64pb7ggbha2c1/BzcOgmGerW

Re: Collision with sprite borders

PostPosted: Sun Apr 28, 2013 10:25 am
by spongehammer
@Tranquility

Hi,

if you open up your sprite in the editor and choose the set collision polygon icon ( bottom on the left ) you can then move the collision polygon to match your shape.

Re: Collision with sprite borders

PostPosted: Sun Apr 28, 2013 10:48 am
by RandomFellow
@Tranquility
Yep, what spongehammer said! For me, however, it me awhile to figure out you could add additional points to the collision polygon by right click the hitbox and selecting add point.

Ya gotta be a bit careful with those. Adding a lot of points can cause some crazy physics reactions.