How do I create lego-type features?

0 favourites
  • 3 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • Hi I'm trying to make a Lego style game and I've come across two problems I need help with.

    When a block is placed it snaps to a Lego slot which is every 32 pixels on the x axis.

    The two problems I have are;

    Firstly, collision with the blocks I have placed. I don't want the blocks which are snapped into place to move when I'm dragging the other blocks around.

    Secondly, how do I make the z-order go from bottom of the screen to the top (so the Lego peices don't show their connectors)

    If you can help with either of these issues it will be greatly appreciated, thank you

  • About locking blocks I would use instance variables to keep track on which blocks have a block on top of it etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have found a solution for the first one however it isn't very efficient.

    I made a variable grounded and whenever a block collides with ground it triggers grounded.

    Grounded variable just sets the blocks physics to immovable.

    Not a perfect way of doing it really.

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