doors that rotate

Get help using Construct 2

Post » Sat Apr 25, 2015 6:07 am

I've been trying for like five days now to get the doors in my game to work. I'm making a top down shooter and I want the doors to swing open when the player collides with them, like in Hotline Miami. I have physics with the center of gravity at 0 on the door, and tried the hinged revolute joint with -90, 90 and pinning it at position only on the wall, and the doors jitter and are super buggy. Anyone know the proper way to do this? Thanks.
B
4
Posts: 2
Reputation: 209

Post » Sat Apr 25, 2015 7:28 am

To avoid physics, I would put the origin of the sprite on the hinge.

And when hitting the door, make the door rotate 90 degrees in the direction the door needs to swing open.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Sat Apr 25, 2015 7:38 am

I thought about doing that... Seemed like a pain at first, but now that I think about it, it's not lol. Thanks lennaert.
B
4
Posts: 2
Reputation: 209

Post » Sat Apr 25, 2015 11:14 am

You could use the LiteTween plugin and have a choice of fancy effects.
B
15
S
5
G
7
Posts: 876
Reputation: 5,650


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests