0 Favourites

Help with collision and solids.

  • Hello,

    This is my first time writing in this forum and I need your help!

    I have encountered a problem that has stopped all my progress with C2.

    I have 3 SOLID sprites: A, B and C.

    When I click on a keyboard:

    I want A colliding with B and C.

    B to colliding with A but not C.

    And C to colliding with A but not B.

    Is the above scenario possible with the free edition? If yes, how?

  • It is with physics objects, Imagine you have objects A, B and C. All of them need the physics behaviour.

    On key press:

    • A > Enable Physics collisions with B
    • A > Enable Physics collisions with C
    • B > DisablePhysics collisions with C

    thats all you need

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Thanks.

    But what if I do not want to use physics?

    For example I am working a top-down game with up to 50 constantly moving solids in an environment with many obstacles.

    What I am looking to achieve is the following:

    I have a Player, an Obstacle and a Box.

    All solids.

    When I press a key, I want to the Player to pass through (or jump) the obstacle But not the Box.

  • "Solid - Ignore Select Solid" has been a feature I have dreamed about but it currently not implemented... There are ways to do this if you don't use the Solid behavior and check X,Y Coords against said object but it's a lot of hard coding. Sorry I dont have a demo capx but there are some floating around on here.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
157 12,692
megatronx's avatar
megatronx
Unread hot topic
0 Favourites
Kiira will help! :D
132 16,613
Kiira's avatar
Kiira
Unread hot topic
37 4,506
JackieChan's avatar
JackieChan