Getting squished between two of the same object

This forum is currently in read-only mode.
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I need to know if there is a way to, say, make two walls closing in on each other. (That is the same object) Just mirrored. To crush the player when they hit him on both sides. I'll try to draw here for you..

    ||-wall -------||same wall mirrored.

    ||-------------||

    ||---O-player ||

    ||-------------||

    ---> <---

    Or do I have to make a wall clone, and name it wall 2. Not that I'm lazy. But I just wondered

    if there is a way to do it.

    The main reason for my question is making it easier to make my level editor,

    with less objects. And easier for the player who wants to make levels.

  • -player-is overlapping wall

    ---system compare--countmatching("wall") equal to 2

    ----------player-destroy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As far as mirroring the wall, use two instances of the wall, have the event system pick which wall by Player.X (one will be greater and one will be less) and have them move towards the player object

  • or give each one a private variable called "direction"

    Make one equal 1

    And one equal -1

    When you choose the xspeed to move

    Multiply it by direction

  • Thanks for the help, will test it out when I get home from work

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