Khodex's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

Khodex's avatar

Khodex

Member since 6 Sep, 2019

Twitter
Khodex has 3 followers

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

9/44
How to earn trophies