How do I create doors like Hotline Miami ones?

0 favourites
  • 3 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hi,

    So i'm trying to do doors that works like Hotline Miami ones.

    I'm using the physics behavior, the doors are pinned into an axis and can only spin around it.

    When my player is colliding with a door, it start spinning fast and though the wall or the player.

    Walls have also physics behavior.

    I don't know how to set the physics behavior on each objects (player, doors and walls), to stop doors going though everything and just let be "pushed".

    Did anyone tried this kind of doors ?

    Thanks for your help.

    Sorry for bad english.

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Did you ask this question before? I remember seeing it here.

    You can't use Physic+Pin, it will never work properly! If you need a very realistic door mechanics, you have to create a physics joint to attach the door to the wall.

    If you just want the doors to open and close on collision, then you should remove Physics and use Tween behavior. On collision -> tween door angle

  • Hi, i didn't ask it before, maybe someone else.

    Anyway i will try without physics, ty for help

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)