Khodex's Forum Posts

  • In the current version (that you can download in the first message of this topic), characters can open doors which are of the same color of the activated button. It works with the blue buttons or the cyan ones.

    But the problem is that there are some... conflicts I think... when the two characters are at the same time on buttons of different colors. And I really don't know how to fix that. And I think when it will be fixed, my problem will be solved.

    Thank you if you have any idea to propose ! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Doors have a family instance variable (text) which is the color. A blue door has this variable setted on blue, a cyan door has the variable setted on cyan and so on...

    Buttons also have a family instance variable (text) which is empty until a characters activates it.

    When a character is on a blue button, the variable of the button becomes blue. If the button is of another color, the variable becomes of this color.

    So, I tried to open the doors with this condition :

    But as you can see in the .c3p file, it only opens some of the doors of the same color, not all of them as I would like.

  • Hello everyone ! First, I'm french so I'm sorry if I do language mistakes. ^^

    I hope you'll be able to help me.

    My game : DOWNLOAD file.c3p

    There are two characters, They can run, jump and you can swap control by pressing "down". They can stand on buttons in order to activate doors which have the same color than the activated button(s). If no button of a color is activated, all the doors of the same color are deactivated too and they go back to their initial position. Simple, right ?

    Here is my problem :

    I would like to use the same script bricks for the buttons behavior and for the doors movements. It's OK for the buttons but for the doors I tried multiple things and it doesn't work, I think that I missed something to make it work properly.

    I would like to create situations in which the two characters are at the same time on different buttons to activate different colored doors.

    Thanks a lot for reading and I can't wait to read your comments on this issue.