Confused about collisions

Discussion and feedback on Construct 2

Post » Sun Jan 15, 2012 12:37 am

So I have a donut-shaped object with a few holes, and a player object, which is a ball. Collision is really odd, i can walk close to its borders, but only collide when inside its shape. I can go inside it, but only through one of the holes, and when inside, I randomly collide with the invisible

http://dl.dropbox.com/u/3954039/c2/New%20project/index.html
WASD move
Go to the right and try to go inside the shape
Now go left and try to go through the other hole
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun Jan 15, 2012 4:57 am

The donut is a single image ?
How did you set the collision polygon ?

A capx would help me help you.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Jan 15, 2012 5:05 am

I'm new to C2. I don't know how to set a collision polygon, if you're talking about physics, i'm not using physics there. And the donut is a single image. I'll send you the capx via PM


Edit: yay 1337 points!7Soul2012-01-15 05:08:50
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun Jan 15, 2012 5:16 am

@7Soul
Double-click your image, press Set Collision Polygon (the icon at the middle-left) and change the collision polygon, add or delete points.
B
34
S
8
G
5
Posts: 174
Reputation: 5,791

Post » Sun Jan 15, 2012 5:20 am

Thx for the info, but I just saw it recommends less than 8 polygons. Will C2 have pixel perfect collision some day?
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun Jan 15, 2012 5:42 am

Yeah... maybe some day... i hope so.
B
34
S
8
G
5
Posts: 174
Reputation: 5,791

Post » Sun Jan 15, 2012 5:48 am

Indeed.
So for now, you should "break" your big sprite into multiple sprites/parts, which with its own collision polygon.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Jan 15, 2012 8:34 am

Are you sere about that, Kyatric?

It's just that THIS POST from Ashley says he's happy with polygonal collision as pixel perfect would be impractical. I suppose in the distant future, maybe :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sun Jan 15, 2012 8:39 am

Well, someday, hypotheticly in the long run it could be.
So indeed... maybe some day... I hope so ^^

Also, maybe an improvement from 8 points collision polygon could see the light of day at some point. Who knows ?
Ashley has already surprised us more than once.

But once again, hypothesis and hopes, nothing more, I don't want to start a rumor or anything.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Jan 15, 2012 8:42 am

You do seem quite close to Ashley so what you say does hold more weight :)

To quote Sheldon Cooper:

"With great power comes great responsibility".

:)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests