The Solid behaviour problem...

Discussion and feedback on Construct 2

Post » Fri Feb 01, 2013 5:49 pm

Hello!
I'm currently in the progress of creating a simple game on Construct 2, however, when I test it, the character barely comes into contact with the walls before stopping (The walls having the Solid Behavior applied.

Is there any way at all to reduce the size of the solid area's region?
(Besides modifying the sprite size)

Thanks :)
B
4
Posts: 6
Reputation: 493

Post » Fri Feb 01, 2013 6:00 pm

Can you set the collision polygon of the solid in a touch, or is it a tile or 9-patch object? Maybe in that case set the collision polygon of your moving character/object?

(collision polygon in in the animation editor, bottom button on the toolbar.)
B
201
S
52
G
30
Posts: 897
Reputation: 36,621

Post » Fri Feb 01, 2013 6:07 pm

Yay! Thank-you so much!!!!!!!!

It works :) That's a feature I never knew about in Construct 2!
B
4
Posts: 6
Reputation: 493

Post » Fri Feb 01, 2013 6:58 pm

The instructions do seem to be a bit light on it.
https://www.scirra.com/manual/48/image-and-animations-editor

But it's pretty easy to figure out after you know to right click on one of the image points for a pop up menu.

Set the shape to match your character/object, so it reacts with the environment correctly.
Remember however that the number of points is checked for collisions every tick, so it will warn you not to use over 8 per sprite.

(edit: made the link clickable)Paradox2013-02-01 19:00:34
B
201
S
52
G
30
Posts: 897
Reputation: 36,621


Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 14 guests